diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-27 21:28:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:48 -0500 |
commit | 9420048c6e3ce43b428cb5965ba0d568bc145978 (patch) | |
tree | a944253e70d9c97e768758da9d5a6d7871019dd6 /drivers/media/video/cx18/cx18-alsa-main.c | |
parent | 583d338ddda291e3244c7f3a785973c51dcce84e (diff) |
Fix the __init/__exit annotations
WARNING: drivers/media/video/cx18/cx18-alsa.o(.text+0x4de): Section
mismatch in reference from the function cx18_alsa_load() to the function
.init.text:snd_cx18_init()
The function cx18_alsa_load() references
the function __init snd_cx18_init().
This is often because cx18_alsa_load lacks a __init
annotation or the annotation of snd_cx18_init is wrong.
WARNING: drivers/media/video/cx18/built-in.o(.text+0x1c022): Section
mismatch in reference from the function cx18_alsa_load() to the function
.init.text:snd_cx18_init()
The function cx18_alsa_load() references
the function __init snd_cx18_init().
This is often because cx18_alsa_load lacks a __init
annotation or the annotation of snd_cx18_init is wrong.
WARNING: drivers/media/video/built-in.o(.text+0x28cc56): Section
mismatch in reference from the function cx18_alsa_load() to the function
.init.text:snd_cx18_init()
The function cx18_alsa_load() references
the function __init snd_cx18_init().
This is often because cx18_alsa_load lacks a __init
annotation or the annotation of snd_cx18_init is wrong.
WARNING: drivers/media/built-in.o(.text+0x2d2432): Section mismatch in
reference from the function cx18_alsa_load() to the function
.init.text:snd_cx18_init()
The function cx18_alsa_load() references
the function __init snd_cx18_init().
This is often because cx18_alsa_load lacks a __init
annotation or the annotation of snd_cx18_init is wrong.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-alsa-main.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-alsa-main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/cx18/cx18-alsa-main.c b/drivers/media/video/cx18/cx18-alsa-main.c index 9efabf5e260f..eb41d7ec65b9 100644 --- a/drivers/media/video/cx18/cx18-alsa-main.c +++ b/drivers/media/video/cx18/cx18-alsa-main.c | |||
@@ -94,7 +94,7 @@ static void snd_cx18_card_private_free(struct snd_card *sc) | |||
94 | sc->private_free = NULL; | 94 | sc->private_free = NULL; |
95 | } | 95 | } |
96 | 96 | ||
97 | static int __init snd_cx18_card_create(struct v4l2_device *v4l2_dev, | 97 | static int snd_cx18_card_create(struct v4l2_device *v4l2_dev, |
98 | struct snd_card *sc, | 98 | struct snd_card *sc, |
99 | struct snd_cx18_card **cxsc) | 99 | struct snd_cx18_card **cxsc) |
100 | { | 100 | { |
@@ -111,7 +111,7 @@ static int __init snd_cx18_card_create(struct v4l2_device *v4l2_dev, | |||
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | 113 | ||
114 | static int __init snd_cx18_card_set_names(struct snd_cx18_card *cxsc) | 114 | static int snd_cx18_card_set_names(struct snd_cx18_card *cxsc) |
115 | { | 115 | { |
116 | struct cx18 *cx = to_cx18(cxsc->v4l2_dev); | 116 | struct cx18 *cx = to_cx18(cxsc->v4l2_dev); |
117 | struct snd_card *sc = cxsc->sc; | 117 | struct snd_card *sc = cxsc->sc; |
@@ -131,7 +131,7 @@ static int __init snd_cx18_card_set_names(struct snd_cx18_card *cxsc) | |||
131 | return 0; | 131 | return 0; |
132 | } | 132 | } |
133 | 133 | ||
134 | static int __init snd_cx18_init(struct v4l2_device *v4l2_dev) | 134 | static int snd_cx18_init(struct v4l2_device *v4l2_dev) |
135 | { | 135 | { |
136 | struct cx18 *cx = to_cx18(v4l2_dev); | 136 | struct cx18 *cx = to_cx18(v4l2_dev); |
137 | struct snd_card *sc = NULL; | 137 | struct snd_card *sc = NULL; |
@@ -242,7 +242,7 @@ static int __init cx18_alsa_init(void) | |||
242 | return 0; | 242 | return 0; |
243 | } | 243 | } |
244 | 244 | ||
245 | static void snd_cx18_exit(struct snd_cx18_card *cxsc) | 245 | static void __exit snd_cx18_exit(struct snd_cx18_card *cxsc) |
246 | { | 246 | { |
247 | struct cx18 *cx = to_cx18(cxsc->v4l2_dev); | 247 | struct cx18 *cx = to_cx18(cxsc->v4l2_dev); |
248 | 248 | ||
@@ -252,7 +252,7 @@ static void snd_cx18_exit(struct snd_cx18_card *cxsc) | |||
252 | cx->alsa = NULL; | 252 | cx->alsa = NULL; |
253 | } | 253 | } |
254 | 254 | ||
255 | static int cx18_alsa_exit_callback(struct device *dev, void *data) | 255 | static int __exit cx18_alsa_exit_callback(struct device *dev, void *data) |
256 | { | 256 | { |
257 | struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); | 257 | struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); |
258 | struct snd_cx18_card *cxsc; | 258 | struct snd_cx18_card *cxsc; |
@@ -274,7 +274,7 @@ static int cx18_alsa_exit_callback(struct device *dev, void *data) | |||
274 | return 0; | 274 | return 0; |
275 | } | 275 | } |
276 | 276 | ||
277 | static void cx18_alsa_exit(void) | 277 | static void __exit cx18_alsa_exit(void) |
278 | { | 278 | { |
279 | struct device_driver *drv; | 279 | struct device_driver *drv; |
280 | int ret; | 280 | int ret; |