Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
* 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: mmc_spi: Fix unterminated of_match_table of/sparc: fix build regression from of_device changes of/device: Replace struct of_device with struct platform_device
This commit is contained in:
@@ -59,7 +59,7 @@ static int soundbus_probe(struct device *dev)
|
||||
static int soundbus_uevent(struct device *dev, struct kobj_uevent_env *env)
|
||||
{
|
||||
struct soundbus_dev * soundbus_dev;
|
||||
struct of_device * of;
|
||||
struct platform_device * of;
|
||||
const char *compat;
|
||||
int retval = 0;
|
||||
int cplen, seen = 0;
|
||||
|
@@ -141,7 +141,7 @@ struct soundbus_dev {
|
||||
struct list_head onbuslist;
|
||||
|
||||
/* the of device it represents */
|
||||
struct of_device ofdev;
|
||||
struct platform_device ofdev;
|
||||
|
||||
/* what modules go by */
|
||||
char modalias[32];
|
||||
|
@@ -16,7 +16,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
struct soundbus_dev *sdev = to_soundbus_device(dev);
|
||||
struct of_device *of = &sdev->ofdev;
|
||||
struct platform_device *of = &sdev->ofdev;
|
||||
int length;
|
||||
|
||||
if (*sdev->modalias) {
|
||||
|
@@ -369,7 +369,7 @@ struct snd_soc_platform mpc5200_audio_dma_platform = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(mpc5200_audio_dma_platform);
|
||||
|
||||
int mpc5200_audio_dma_create(struct of_device *op)
|
||||
int mpc5200_audio_dma_create(struct platform_device *op)
|
||||
{
|
||||
phys_addr_t fifo;
|
||||
struct psc_dma *psc_dma;
|
||||
@@ -488,7 +488,7 @@ out_unmap:
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mpc5200_audio_dma_create);
|
||||
|
||||
int mpc5200_audio_dma_destroy(struct of_device *op)
|
||||
int mpc5200_audio_dma_destroy(struct platform_device *op)
|
||||
{
|
||||
struct psc_dma *psc_dma = dev_get_drvdata(&op->dev);
|
||||
|
||||
|
@@ -81,8 +81,8 @@ to_psc_dma_stream(struct snd_pcm_substream *substream, struct psc_dma *psc_dma)
|
||||
return &psc_dma->playback;
|
||||
}
|
||||
|
||||
int mpc5200_audio_dma_create(struct of_device *op);
|
||||
int mpc5200_audio_dma_destroy(struct of_device *op);
|
||||
int mpc5200_audio_dma_create(struct platform_device *op);
|
||||
int mpc5200_audio_dma_destroy(struct platform_device *op);
|
||||
|
||||
extern struct snd_soc_platform mpc5200_audio_dma_platform;
|
||||
|
||||
|
@@ -277,7 +277,7 @@ EXPORT_SYMBOL_GPL(psc_ac97_dai);
|
||||
* - Probe/remove operations
|
||||
* - OF device match table
|
||||
*/
|
||||
static int __devinit psc_ac97_of_probe(struct of_device *op,
|
||||
static int __devinit psc_ac97_of_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int rc, i;
|
||||
@@ -317,7 +317,7 @@ static int __devinit psc_ac97_of_probe(struct of_device *op,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit psc_ac97_of_remove(struct of_device *op)
|
||||
static int __devexit psc_ac97_of_remove(struct platform_device *op)
|
||||
{
|
||||
return mpc5200_audio_dma_destroy(op);
|
||||
}
|
||||
|
@@ -152,7 +152,7 @@ EXPORT_SYMBOL_GPL(psc_i2s_dai);
|
||||
* - Probe/remove operations
|
||||
* - OF device match table
|
||||
*/
|
||||
static int __devinit psc_i2s_of_probe(struct of_device *op,
|
||||
static int __devinit psc_i2s_of_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int rc;
|
||||
@@ -205,7 +205,7 @@ static int __devinit psc_i2s_of_probe(struct of_device *op,
|
||||
|
||||
}
|
||||
|
||||
static int __devexit psc_i2s_of_remove(struct of_device *op)
|
||||
static int __devexit psc_i2s_of_remove(struct platform_device *op)
|
||||
{
|
||||
return mpc5200_audio_dma_destroy(op);
|
||||
}
|
||||
|
@@ -200,7 +200,7 @@ static struct snd_soc_ops mpc8610_hpcd_ops = {
|
||||
* SSI devices. We also probably aren't compatible with the generic Elo DMA
|
||||
* device driver.
|
||||
*/
|
||||
static int mpc8610_hpcd_probe(struct of_device *ofdev,
|
||||
static int mpc8610_hpcd_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
@@ -534,7 +534,7 @@ error:
|
||||
*
|
||||
* This function is called when the OF device is removed.
|
||||
*/
|
||||
static int mpc8610_hpcd_remove(struct of_device *ofdev)
|
||||
static int mpc8610_hpcd_remove(struct platform_device *ofdev)
|
||||
{
|
||||
struct platform_device *sound_device = dev_get_drvdata(&ofdev->dev);
|
||||
struct mpc8610_hpcd_data *machine_data =
|
||||
|
@@ -336,7 +336,7 @@ struct snd_amd7930 {
|
||||
int pgain;
|
||||
int mgain;
|
||||
|
||||
struct of_device *op;
|
||||
struct platform_device *op;
|
||||
unsigned int irq;
|
||||
struct snd_amd7930 *next;
|
||||
};
|
||||
@@ -906,7 +906,7 @@ static int __devinit snd_amd7930_mixer(struct snd_amd7930 *amd)
|
||||
|
||||
static int snd_amd7930_free(struct snd_amd7930 *amd)
|
||||
{
|
||||
struct of_device *op = amd->op;
|
||||
struct platform_device *op = amd->op;
|
||||
|
||||
amd7930_idle(amd);
|
||||
|
||||
@@ -934,7 +934,7 @@ static struct snd_device_ops snd_amd7930_dev_ops = {
|
||||
};
|
||||
|
||||
static int __devinit snd_amd7930_create(struct snd_card *card,
|
||||
struct of_device *op,
|
||||
struct platform_device *op,
|
||||
int irq, int dev,
|
||||
struct snd_amd7930 **ramd)
|
||||
{
|
||||
@@ -1002,7 +1002,7 @@ static int __devinit snd_amd7930_create(struct snd_card *card,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit amd7930_sbus_probe(struct of_device *op, const struct of_device_id *match)
|
||||
static int __devinit amd7930_sbus_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct resource *rp = &op->resource[0];
|
||||
static int dev_num;
|
||||
|
@@ -111,7 +111,7 @@ struct snd_cs4231 {
|
||||
struct mutex mce_mutex; /* mutex for mce register */
|
||||
struct mutex open_mutex; /* mutex for ALSA open/close */
|
||||
|
||||
struct of_device *op;
|
||||
struct platform_device *op;
|
||||
unsigned int irq[2];
|
||||
unsigned int regs_size;
|
||||
struct snd_cs4231 *next;
|
||||
@@ -1771,7 +1771,7 @@ static unsigned int sbus_dma_addr(struct cs4231_dma_control *dma_cont)
|
||||
|
||||
static int snd_cs4231_sbus_free(struct snd_cs4231 *chip)
|
||||
{
|
||||
struct of_device *op = chip->op;
|
||||
struct platform_device *op = chip->op;
|
||||
|
||||
if (chip->irq[0])
|
||||
free_irq(chip->irq[0], chip);
|
||||
@@ -1794,7 +1794,7 @@ static struct snd_device_ops snd_cs4231_sbus_dev_ops = {
|
||||
};
|
||||
|
||||
static int __devinit snd_cs4231_sbus_create(struct snd_card *card,
|
||||
struct of_device *op,
|
||||
struct platform_device *op,
|
||||
int dev)
|
||||
{
|
||||
struct snd_cs4231 *chip = card->private_data;
|
||||
@@ -1856,7 +1856,7 @@ static int __devinit snd_cs4231_sbus_create(struct snd_card *card,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit cs4231_sbus_probe(struct of_device *op, const struct of_device_id *match)
|
||||
static int __devinit cs4231_sbus_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct resource *rp = &op->resource[0];
|
||||
struct snd_card *card;
|
||||
@@ -1931,7 +1931,7 @@ static unsigned int _ebus_dma_addr(struct cs4231_dma_control *dma_cont)
|
||||
|
||||
static int snd_cs4231_ebus_free(struct snd_cs4231 *chip)
|
||||
{
|
||||
struct of_device *op = chip->op;
|
||||
struct platform_device *op = chip->op;
|
||||
|
||||
if (chip->c_dma.ebus_info.regs) {
|
||||
ebus_dma_unregister(&chip->c_dma.ebus_info);
|
||||
@@ -1960,7 +1960,7 @@ static struct snd_device_ops snd_cs4231_ebus_dev_ops = {
|
||||
};
|
||||
|
||||
static int __devinit snd_cs4231_ebus_create(struct snd_card *card,
|
||||
struct of_device *op,
|
||||
struct platform_device *op,
|
||||
int dev)
|
||||
{
|
||||
struct snd_cs4231 *chip = card->private_data;
|
||||
@@ -2048,7 +2048,7 @@ static int __devinit snd_cs4231_ebus_create(struct snd_card *card,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit cs4231_ebus_probe(struct of_device *op, const struct of_device_id *match)
|
||||
static int __devinit cs4231_ebus_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct snd_card *card;
|
||||
int err;
|
||||
@@ -2072,7 +2072,7 @@ static int __devinit cs4231_ebus_probe(struct of_device *op, const struct of_dev
|
||||
}
|
||||
#endif
|
||||
|
||||
static int __devinit cs4231_probe(struct of_device *op, const struct of_device_id *match)
|
||||
static int __devinit cs4231_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
#ifdef EBUS_SUPPORT
|
||||
if (!strcmp(op->dev.of_node->parent->name, "ebus"))
|
||||
@@ -2086,7 +2086,7 @@ static int __devinit cs4231_probe(struct of_device *op, const struct of_device_i
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static int __devexit cs4231_remove(struct of_device *op)
|
||||
static int __devexit cs4231_remove(struct platform_device *op)
|
||||
{
|
||||
struct snd_cs4231 *chip = dev_get_drvdata(&op->dev);
|
||||
|
||||
|
@@ -299,7 +299,7 @@ struct dbri_streaminfo {
|
||||
/* This structure holds the information for both chips (DBRI & CS4215) */
|
||||
struct snd_dbri {
|
||||
int regs_size, irq; /* Needed for unload */
|
||||
struct of_device *op; /* OF device info */
|
||||
struct platform_device *op; /* OF device info */
|
||||
spinlock_t lock;
|
||||
|
||||
struct dbri_dma *dma; /* Pointer to our DMA block */
|
||||
@@ -2523,7 +2523,7 @@ static void __devinit snd_dbri_proc(struct snd_card *card)
|
||||
static void snd_dbri_free(struct snd_dbri *dbri);
|
||||
|
||||
static int __devinit snd_dbri_create(struct snd_card *card,
|
||||
struct of_device *op,
|
||||
struct platform_device *op,
|
||||
int irq, int dev)
|
||||
{
|
||||
struct snd_dbri *dbri = card->private_data;
|
||||
@@ -2592,7 +2592,7 @@ static void snd_dbri_free(struct snd_dbri *dbri)
|
||||
(void *)dbri->dma, dbri->dma_dvma);
|
||||
}
|
||||
|
||||
static int __devinit dbri_probe(struct of_device *op, const struct of_device_id *match)
|
||||
static int __devinit dbri_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct snd_dbri *dbri;
|
||||
struct resource *rp;
|
||||
@@ -2662,7 +2662,7 @@ _err:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit dbri_remove(struct of_device *op)
|
||||
static int __devexit dbri_remove(struct platform_device *op)
|
||||
{
|
||||
struct snd_card *card = dev_get_drvdata(&op->dev);
|
||||
|
||||
|
Reference in New Issue
Block a user