diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-06 12:35:25 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-07 01:34:04 -0500 |
commit | 32e02a7b690f22b2f56efac929d7c300994ddc4c (patch) | |
tree | dd25464ec3612b5afec602dc8804315784b4c77b /sound/sparc/cs4231.c | |
parent | e74033a858bf36d5763eafea600e07fc917e3592 (diff) |
ALSA: sparc: remove __dev* attributes
CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.
Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/sparc/cs4231.c')
-rw-r--r-- | sound/sparc/cs4231.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index f2eabd3f22fd..54aaad2a10f5 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c | |||
@@ -702,7 +702,7 @@ static int snd_cs4231_timer_stop(struct snd_timer *timer) | |||
702 | return 0; | 702 | return 0; |
703 | } | 703 | } |
704 | 704 | ||
705 | static void __devinit snd_cs4231_init(struct snd_cs4231 *chip) | 705 | static void snd_cs4231_init(struct snd_cs4231 *chip) |
706 | { | 706 | { |
707 | unsigned long flags; | 707 | unsigned long flags; |
708 | 708 | ||
@@ -1019,7 +1019,7 @@ static snd_pcm_uframes_t snd_cs4231_capture_pointer( | |||
1019 | return bytes_to_frames(substream->runtime, ptr); | 1019 | return bytes_to_frames(substream->runtime, ptr); |
1020 | } | 1020 | } |
1021 | 1021 | ||
1022 | static int __devinit snd_cs4231_probe(struct snd_cs4231 *chip) | 1022 | static int snd_cs4231_probe(struct snd_cs4231 *chip) |
1023 | { | 1023 | { |
1024 | unsigned long flags; | 1024 | unsigned long flags; |
1025 | int i; | 1025 | int i; |
@@ -1218,7 +1218,7 @@ static struct snd_pcm_ops snd_cs4231_capture_ops = { | |||
1218 | .pointer = snd_cs4231_capture_pointer, | 1218 | .pointer = snd_cs4231_capture_pointer, |
1219 | }; | 1219 | }; |
1220 | 1220 | ||
1221 | static int __devinit snd_cs4231_pcm(struct snd_card *card) | 1221 | static int snd_cs4231_pcm(struct snd_card *card) |
1222 | { | 1222 | { |
1223 | struct snd_cs4231 *chip = card->private_data; | 1223 | struct snd_cs4231 *chip = card->private_data; |
1224 | struct snd_pcm *pcm; | 1224 | struct snd_pcm *pcm; |
@@ -1247,7 +1247,7 @@ static int __devinit snd_cs4231_pcm(struct snd_card *card) | |||
1247 | return 0; | 1247 | return 0; |
1248 | } | 1248 | } |
1249 | 1249 | ||
1250 | static int __devinit snd_cs4231_timer(struct snd_card *card) | 1250 | static int snd_cs4231_timer(struct snd_card *card) |
1251 | { | 1251 | { |
1252 | struct snd_cs4231 *chip = card->private_data; | 1252 | struct snd_cs4231 *chip = card->private_data; |
1253 | struct snd_timer *timer; | 1253 | struct snd_timer *timer; |
@@ -1498,7 +1498,7 @@ static int snd_cs4231_put_double(struct snd_kcontrol *kcontrol, | |||
1498 | .private_value = (left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | \ | 1498 | .private_value = (left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | \ |
1499 | ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) } | 1499 | ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) } |
1500 | 1500 | ||
1501 | static struct snd_kcontrol_new snd_cs4231_controls[] __devinitdata = { | 1501 | static struct snd_kcontrol_new snd_cs4231_controls[] = { |
1502 | CS4231_DOUBLE("PCM Playback Switch", 0, CS4231_LEFT_OUTPUT, | 1502 | CS4231_DOUBLE("PCM Playback Switch", 0, CS4231_LEFT_OUTPUT, |
1503 | CS4231_RIGHT_OUTPUT, 7, 7, 1, 1), | 1503 | CS4231_RIGHT_OUTPUT, 7, 7, 1, 1), |
1504 | CS4231_DOUBLE("PCM Playback Volume", 0, CS4231_LEFT_OUTPUT, | 1504 | CS4231_DOUBLE("PCM Playback Volume", 0, CS4231_LEFT_OUTPUT, |
@@ -1537,7 +1537,7 @@ CS4231_SINGLE("Line Out Switch", 0, CS4231_PIN_CTRL, 6, 1, 1), | |||
1537 | CS4231_SINGLE("Headphone Out Switch", 0, CS4231_PIN_CTRL, 7, 1, 1) | 1537 | CS4231_SINGLE("Headphone Out Switch", 0, CS4231_PIN_CTRL, 7, 1, 1) |
1538 | }; | 1538 | }; |
1539 | 1539 | ||
1540 | static int __devinit snd_cs4231_mixer(struct snd_card *card) | 1540 | static int snd_cs4231_mixer(struct snd_card *card) |
1541 | { | 1541 | { |
1542 | struct snd_cs4231 *chip = card->private_data; | 1542 | struct snd_cs4231 *chip = card->private_data; |
1543 | int err, idx; | 1543 | int err, idx; |
@@ -1558,7 +1558,7 @@ static int __devinit snd_cs4231_mixer(struct snd_card *card) | |||
1558 | 1558 | ||
1559 | static int dev; | 1559 | static int dev; |
1560 | 1560 | ||
1561 | static int __devinit cs4231_attach_begin(struct snd_card **rcard) | 1561 | static int cs4231_attach_begin(struct snd_card **rcard) |
1562 | { | 1562 | { |
1563 | struct snd_card *card; | 1563 | struct snd_card *card; |
1564 | struct snd_cs4231 *chip; | 1564 | struct snd_cs4231 *chip; |
@@ -1589,7 +1589,7 @@ static int __devinit cs4231_attach_begin(struct snd_card **rcard) | |||
1589 | return 0; | 1589 | return 0; |
1590 | } | 1590 | } |
1591 | 1591 | ||
1592 | static int __devinit cs4231_attach_finish(struct snd_card *card) | 1592 | static int cs4231_attach_finish(struct snd_card *card) |
1593 | { | 1593 | { |
1594 | struct snd_cs4231 *chip = card->private_data; | 1594 | struct snd_cs4231 *chip = card->private_data; |
1595 | int err; | 1595 | int err; |
@@ -1793,9 +1793,9 @@ static struct snd_device_ops snd_cs4231_sbus_dev_ops = { | |||
1793 | .dev_free = snd_cs4231_sbus_dev_free, | 1793 | .dev_free = snd_cs4231_sbus_dev_free, |
1794 | }; | 1794 | }; |
1795 | 1795 | ||
1796 | static int __devinit snd_cs4231_sbus_create(struct snd_card *card, | 1796 | static int snd_cs4231_sbus_create(struct snd_card *card, |
1797 | struct platform_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; |
1801 | int err; | 1801 | int err; |
@@ -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 platform_device *op) | 1859 | static int cs4231_sbus_probe(struct platform_device *op) |
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; |
@@ -1959,9 +1959,9 @@ static struct snd_device_ops snd_cs4231_ebus_dev_ops = { | |||
1959 | .dev_free = snd_cs4231_ebus_dev_free, | 1959 | .dev_free = snd_cs4231_ebus_dev_free, |
1960 | }; | 1960 | }; |
1961 | 1961 | ||
1962 | static int __devinit snd_cs4231_ebus_create(struct snd_card *card, | 1962 | static int snd_cs4231_ebus_create(struct snd_card *card, |
1963 | struct platform_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; |
1967 | int err; | 1967 | int err; |
@@ -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 platform_device *op) | 2051 | static int cs4231_ebus_probe(struct platform_device *op) |
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 platform_device *op) | |||
2072 | } | 2072 | } |
2073 | #endif | 2073 | #endif |
2074 | 2074 | ||
2075 | static int __devinit cs4231_probe(struct platform_device *op) | 2075 | static int cs4231_probe(struct platform_device *op) |
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 platform_device *op) | |||
2086 | return -ENODEV; | 2086 | return -ENODEV; |
2087 | } | 2087 | } |
2088 | 2088 | ||
2089 | static int __devexit cs4231_remove(struct platform_device *op) | 2089 | static int 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 | ||
@@ -2115,7 +2115,7 @@ static struct platform_driver cs4231_driver = { | |||
2115 | .of_match_table = cs4231_match, | 2115 | .of_match_table = cs4231_match, |
2116 | }, | 2116 | }, |
2117 | .probe = cs4231_probe, | 2117 | .probe = cs4231_probe, |
2118 | .remove = __devexit_p(cs4231_remove), | 2118 | .remove = cs4231_remove, |
2119 | }; | 2119 | }; |
2120 | 2120 | ||
2121 | module_platform_driver(cs4231_driver); | 2121 | module_platform_driver(cs4231_driver); |