diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-09 14:15:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-09 14:22:58 -0400 |
commit | 32556394501a27c02e7185c4d11a51b636b02f4b (patch) | |
tree | b015a62a7774b4e0bbf37f7aa4600fe47868aeec /sound/soc/codecs/cx20442.c | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
ASoC: cx20442: remove incorerct __exit markups
Even if bus is not hot-pluggable, the devices can be unbound from the
driver via sysfs, so we should not be using __exit annotations on
remove() methods. The only exception is drivers registered with
platform_driver_probe() which specifically disables sysfs bind/unbind
attributes.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cx20442.c')
-rw-r--r-- | sound/soc/codecs/cx20442.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c index 0b10979513c4..0f334bc1b63c 100644 --- a/sound/soc/codecs/cx20442.c +++ b/sound/soc/codecs/cx20442.c | |||
@@ -420,7 +420,7 @@ static int cx20442_platform_probe(struct platform_device *pdev) | |||
420 | &cx20442_codec_dev, &cx20442_dai, 1); | 420 | &cx20442_codec_dev, &cx20442_dai, 1); |
421 | } | 421 | } |
422 | 422 | ||
423 | static int __exit cx20442_platform_remove(struct platform_device *pdev) | 423 | static int cx20442_platform_remove(struct platform_device *pdev) |
424 | { | 424 | { |
425 | snd_soc_unregister_codec(&pdev->dev); | 425 | snd_soc_unregister_codec(&pdev->dev); |
426 | return 0; | 426 | return 0; |
@@ -431,7 +431,7 @@ static struct platform_driver cx20442_platform_driver = { | |||
431 | .name = "cx20442-codec", | 431 | .name = "cx20442-codec", |
432 | }, | 432 | }, |
433 | .probe = cx20442_platform_probe, | 433 | .probe = cx20442_platform_probe, |
434 | .remove = __exit_p(cx20442_platform_remove), | 434 | .remove = cx20442_platform_remove, |
435 | }; | 435 | }; |
436 | 436 | ||
437 | module_platform_driver(cx20442_platform_driver); | 437 | module_platform_driver(cx20442_platform_driver); |