diff options
Diffstat (limited to 'sound/sparc')
| -rw-r--r-- | sound/sparc/amd7930.c | 8 | ||||
| -rw-r--r-- | sound/sparc/cs4231.c | 18 | ||||
| -rw-r--r-- | sound/sparc/dbri.c | 8 |
3 files changed, 17 insertions, 17 deletions
diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index 9eb1a4e0363b..f8bcfc30f800 100644 --- a/sound/sparc/amd7930.c +++ b/sound/sparc/amd7930.c | |||
| @@ -336,7 +336,7 @@ struct snd_amd7930 { | |||
| 336 | int pgain; | 336 | int pgain; |
| 337 | int mgain; | 337 | int mgain; |
| 338 | 338 | ||
| 339 | struct of_device *op; | 339 | struct platform_device *op; |
| 340 | unsigned int irq; | 340 | unsigned int irq; |
| 341 | struct snd_amd7930 *next; | 341 | struct snd_amd7930 *next; |
| 342 | }; | 342 | }; |
| @@ -906,7 +906,7 @@ static int __devinit snd_amd7930_mixer(struct snd_amd7930 *amd) | |||
| 906 | 906 | ||
| 907 | static int snd_amd7930_free(struct snd_amd7930 *amd) | 907 | static int snd_amd7930_free(struct snd_amd7930 *amd) |
| 908 | { | 908 | { |
| 909 | struct of_device *op = amd->op; | 909 | struct platform_device *op = amd->op; |
| 910 | 910 | ||
| 911 | amd7930_idle(amd); | 911 | amd7930_idle(amd); |
| 912 | 912 | ||
| @@ -934,7 +934,7 @@ static struct snd_device_ops snd_amd7930_dev_ops = { | |||
| 934 | }; | 934 | }; |
| 935 | 935 | ||
| 936 | static int __devinit snd_amd7930_create(struct snd_card *card, | 936 | static int __devinit snd_amd7930_create(struct snd_card *card, |
| 937 | struct of_device *op, | 937 | struct platform_device *op, |
| 938 | int irq, int dev, | 938 | int irq, int dev, |
| 939 | struct snd_amd7930 **ramd) | 939 | struct snd_amd7930 **ramd) |
| 940 | { | 940 | { |
| @@ -1002,7 +1002,7 @@ static int __devinit snd_amd7930_create(struct snd_card *card, | |||
| 1002 | return 0; | 1002 | return 0; |
| 1003 | } | 1003 | } |
| 1004 | 1004 | ||
| 1005 | static int __devinit amd7930_sbus_probe(struct of_device *op, const struct of_device_id *match) | 1005 | static int __devinit amd7930_sbus_probe(struct platform_device *op, const struct of_device_id *match) |
| 1006 | { | 1006 | { |
| 1007 | struct resource *rp = &op->resource[0]; | 1007 | struct resource *rp = &op->resource[0]; |
| 1008 | static int dev_num; | 1008 | static int dev_num; |
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index 68570ee2c9bb..c276086c3b57 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c | |||
| @@ -111,7 +111,7 @@ struct snd_cs4231 { | |||
| 111 | struct mutex mce_mutex; /* mutex for mce register */ | 111 | struct mutex mce_mutex; /* mutex for mce register */ |
| 112 | struct mutex open_mutex; /* mutex for ALSA open/close */ | 112 | struct mutex open_mutex; /* mutex for ALSA open/close */ |
| 113 | 113 | ||
| 114 | struct of_device *op; | 114 | struct platform_device *op; |
| 115 | unsigned int irq[2]; | 115 | unsigned int irq[2]; |
| 116 | unsigned int regs_size; | 116 | unsigned int regs_size; |
| 117 | struct snd_cs4231 *next; | 117 | struct snd_cs4231 *next; |
| @@ -1771,7 +1771,7 @@ static unsigned int sbus_dma_addr(struct cs4231_dma_control *dma_cont) | |||
| 1771 | 1771 | ||
| 1772 | static int snd_cs4231_sbus_free(struct snd_cs4231 *chip) | 1772 | static int snd_cs4231_sbus_free(struct snd_cs4231 *chip) |
| 1773 | { | 1773 | { |
| 1774 | struct of_device *op = chip->op; | 1774 | struct platform_device *op = chip->op; |
| 1775 | 1775 | ||
| 1776 | if (chip->irq[0]) | 1776 | if (chip->irq[0]) |
| 1777 | free_irq(chip->irq[0], chip); | 1777 | free_irq(chip->irq[0], chip); |
| @@ -1794,7 +1794,7 @@ static struct snd_device_ops snd_cs4231_sbus_dev_ops = { | |||
| 1794 | }; | 1794 | }; |
| 1795 | 1795 | ||
| 1796 | static int __devinit snd_cs4231_sbus_create(struct snd_card *card, | 1796 | static int __devinit snd_cs4231_sbus_create(struct snd_card *card, |
| 1797 | struct of_device *op, | 1797 | struct platform_device *op, |
| 1798 | int dev) | 1798 | int dev) |
| 1799 | { | 1799 | { |
| 1800 | struct snd_cs4231 *chip = card->private_data; | 1800 | struct snd_cs4231 *chip = card->private_data; |
| @@ -1856,7 +1856,7 @@ static int __devinit snd_cs4231_sbus_create(struct snd_card *card, | |||
| 1856 | return 0; | 1856 | return 0; |
| 1857 | } | 1857 | } |
| 1858 | 1858 | ||
| 1859 | static int __devinit cs4231_sbus_probe(struct of_device *op, const struct of_device_id *match) | 1859 | static int __devinit cs4231_sbus_probe(struct platform_device *op, const struct of_device_id *match) |
| 1860 | { | 1860 | { |
| 1861 | struct resource *rp = &op->resource[0]; | 1861 | struct resource *rp = &op->resource[0]; |
| 1862 | struct snd_card *card; | 1862 | struct snd_card *card; |
| @@ -1931,7 +1931,7 @@ static unsigned int _ebus_dma_addr(struct cs4231_dma_control *dma_cont) | |||
| 1931 | 1931 | ||
| 1932 | static int snd_cs4231_ebus_free(struct snd_cs4231 *chip) | 1932 | static int snd_cs4231_ebus_free(struct snd_cs4231 *chip) |
| 1933 | { | 1933 | { |
| 1934 | struct of_device *op = chip->op; | 1934 | struct platform_device *op = chip->op; |
| 1935 | 1935 | ||
| 1936 | if (chip->c_dma.ebus_info.regs) { | 1936 | if (chip->c_dma.ebus_info.regs) { |
| 1937 | ebus_dma_unregister(&chip->c_dma.ebus_info); | 1937 | ebus_dma_unregister(&chip->c_dma.ebus_info); |
| @@ -1960,7 +1960,7 @@ static struct snd_device_ops snd_cs4231_ebus_dev_ops = { | |||
| 1960 | }; | 1960 | }; |
| 1961 | 1961 | ||
| 1962 | static int __devinit snd_cs4231_ebus_create(struct snd_card *card, | 1962 | static int __devinit snd_cs4231_ebus_create(struct snd_card *card, |
| 1963 | struct of_device *op, | 1963 | struct platform_device *op, |
| 1964 | int dev) | 1964 | int dev) |
| 1965 | { | 1965 | { |
| 1966 | struct snd_cs4231 *chip = card->private_data; | 1966 | struct snd_cs4231 *chip = card->private_data; |
| @@ -2048,7 +2048,7 @@ static int __devinit snd_cs4231_ebus_create(struct snd_card *card, | |||
| 2048 | return 0; | 2048 | return 0; |
| 2049 | } | 2049 | } |
| 2050 | 2050 | ||
| 2051 | static int __devinit cs4231_ebus_probe(struct of_device *op, const struct of_device_id *match) | 2051 | static int __devinit cs4231_ebus_probe(struct platform_device *op, const struct of_device_id *match) |
| 2052 | { | 2052 | { |
| 2053 | struct snd_card *card; | 2053 | struct snd_card *card; |
| 2054 | int err; | 2054 | int err; |
| @@ -2072,7 +2072,7 @@ static int __devinit cs4231_ebus_probe(struct of_device *op, const struct of_dev | |||
| 2072 | } | 2072 | } |
| 2073 | #endif | 2073 | #endif |
| 2074 | 2074 | ||
| 2075 | static int __devinit cs4231_probe(struct of_device *op, const struct of_device_id *match) | 2075 | static int __devinit cs4231_probe(struct platform_device *op, const struct of_device_id *match) |
| 2076 | { | 2076 | { |
| 2077 | #ifdef EBUS_SUPPORT | 2077 | #ifdef EBUS_SUPPORT |
| 2078 | if (!strcmp(op->dev.of_node->parent->name, "ebus")) | 2078 | 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 | |||
| 2086 | return -ENODEV; | 2086 | return -ENODEV; |
| 2087 | } | 2087 | } |
| 2088 | 2088 | ||
| 2089 | static int __devexit cs4231_remove(struct of_device *op) | 2089 | static int __devexit cs4231_remove(struct platform_device *op) |
| 2090 | { | 2090 | { |
| 2091 | struct snd_cs4231 *chip = dev_get_drvdata(&op->dev); | 2091 | struct snd_cs4231 *chip = dev_get_drvdata(&op->dev); |
| 2092 | 2092 | ||
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c index c421901c48d0..39cd5d69d051 100644 --- a/sound/sparc/dbri.c +++ b/sound/sparc/dbri.c | |||
| @@ -299,7 +299,7 @@ struct dbri_streaminfo { | |||
| 299 | /* This structure holds the information for both chips (DBRI & CS4215) */ | 299 | /* This structure holds the information for both chips (DBRI & CS4215) */ |
| 300 | struct snd_dbri { | 300 | struct snd_dbri { |
| 301 | int regs_size, irq; /* Needed for unload */ | 301 | int regs_size, irq; /* Needed for unload */ |
| 302 | struct of_device *op; /* OF device info */ | 302 | struct platform_device *op; /* OF device info */ |
| 303 | spinlock_t lock; | 303 | spinlock_t lock; |
| 304 | 304 | ||
| 305 | struct dbri_dma *dma; /* Pointer to our DMA block */ | 305 | struct dbri_dma *dma; /* Pointer to our DMA block */ |
| @@ -2523,7 +2523,7 @@ static void __devinit snd_dbri_proc(struct snd_card *card) | |||
| 2523 | static void snd_dbri_free(struct snd_dbri *dbri); | 2523 | static void snd_dbri_free(struct snd_dbri *dbri); |
| 2524 | 2524 | ||
| 2525 | static int __devinit snd_dbri_create(struct snd_card *card, | 2525 | static int __devinit snd_dbri_create(struct snd_card *card, |
| 2526 | struct of_device *op, | 2526 | struct platform_device *op, |
| 2527 | int irq, int dev) | 2527 | int irq, int dev) |
| 2528 | { | 2528 | { |
| 2529 | struct snd_dbri *dbri = card->private_data; | 2529 | struct snd_dbri *dbri = card->private_data; |
| @@ -2592,7 +2592,7 @@ static void snd_dbri_free(struct snd_dbri *dbri) | |||
| 2592 | (void *)dbri->dma, dbri->dma_dvma); | 2592 | (void *)dbri->dma, dbri->dma_dvma); |
| 2593 | } | 2593 | } |
| 2594 | 2594 | ||
| 2595 | static int __devinit dbri_probe(struct of_device *op, const struct of_device_id *match) | 2595 | static int __devinit dbri_probe(struct platform_device *op, const struct of_device_id *match) |
| 2596 | { | 2596 | { |
| 2597 | struct snd_dbri *dbri; | 2597 | struct snd_dbri *dbri; |
| 2598 | struct resource *rp; | 2598 | struct resource *rp; |
| @@ -2662,7 +2662,7 @@ _err: | |||
| 2662 | return err; | 2662 | return err; |
| 2663 | } | 2663 | } |
| 2664 | 2664 | ||
| 2665 | static int __devexit dbri_remove(struct of_device *op) | 2665 | static int __devexit dbri_remove(struct platform_device *op) |
| 2666 | { | 2666 | { |
| 2667 | struct snd_card *card = dev_get_drvdata(&op->dev); | 2667 | struct snd_card *card = dev_get_drvdata(&op->dev); |
| 2668 | 2668 | ||
