diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:17:53 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:02 -0500 |
commit | 4c62e9764ab403d42f9b8871b1241fe7812f19d4 (patch) | |
tree | b4ae1ce3993ebf1d64660ba16362f9ef3de73074 /drivers/media/radio/radio-sf16fmr2.c | |
parent | c571b211a70bcb04249be5cb7338f95d2ec8100f (diff) |
Drivers: media: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitdata,
__devinitconst, and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/radio/radio-sf16fmr2.c')
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 4efcbec74c52..9c0990457a7c 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -197,13 +197,13 @@ static int fmr2_tea_ext_init(struct snd_tea575x *tea) | |||
197 | return 0; | 197 | return 0; |
198 | } | 198 | } |
199 | 199 | ||
200 | static struct pnp_device_id fmr2_pnp_ids[] __devinitdata = { | 200 | static struct pnp_device_id fmr2_pnp_ids[] = { |
201 | { .id = "MFRad13" }, /* tuner subdevice of SF16-FMD2 */ | 201 | { .id = "MFRad13" }, /* tuner subdevice of SF16-FMD2 */ |
202 | { .id = "" } | 202 | { .id = "" } |
203 | }; | 203 | }; |
204 | MODULE_DEVICE_TABLE(pnp, fmr2_pnp_ids); | 204 | MODULE_DEVICE_TABLE(pnp, fmr2_pnp_ids); |
205 | 205 | ||
206 | static int __devinit fmr2_probe(struct fmr2 *fmr2, struct device *pdev, int io) | 206 | static int fmr2_probe(struct fmr2 *fmr2, struct device *pdev, int io) |
207 | { | 207 | { |
208 | int err, i; | 208 | int err, i; |
209 | char *card_name = fmr2->is_fmd2 ? "SF16-FMD2" : "SF16-FMR2"; | 209 | char *card_name = fmr2->is_fmd2 ? "SF16-FMD2" : "SF16-FMR2"; |
@@ -249,7 +249,7 @@ static int __devinit fmr2_probe(struct fmr2 *fmr2, struct device *pdev, int io) | |||
249 | return 0; | 249 | return 0; |
250 | } | 250 | } |
251 | 251 | ||
252 | static int __devinit fmr2_isa_match(struct device *pdev, unsigned int ndev) | 252 | static int fmr2_isa_match(struct device *pdev, unsigned int ndev) |
253 | { | 253 | { |
254 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); | 254 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); |
255 | if (!fmr2) | 255 | if (!fmr2) |
@@ -265,8 +265,7 @@ static int __devinit fmr2_isa_match(struct device *pdev, unsigned int ndev) | |||
265 | return 1; | 265 | return 1; |
266 | } | 266 | } |
267 | 267 | ||
268 | static int __devinit fmr2_pnp_probe(struct pnp_dev *pdev, | 268 | static int fmr2_pnp_probe(struct pnp_dev *pdev, const struct pnp_device_id *id) |
269 | const struct pnp_device_id *id) | ||
270 | { | 269 | { |
271 | int ret; | 270 | int ret; |
272 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); | 271 | struct fmr2 *fmr2 = kzalloc(sizeof(*fmr2), GFP_KERNEL); |
@@ -285,7 +284,7 @@ static int __devinit fmr2_pnp_probe(struct pnp_dev *pdev, | |||
285 | return 0; | 284 | return 0; |
286 | } | 285 | } |
287 | 286 | ||
288 | static void __devexit fmr2_remove(struct fmr2 *fmr2) | 287 | static void fmr2_remove(struct fmr2 *fmr2) |
289 | { | 288 | { |
290 | snd_tea575x_exit(&fmr2->tea); | 289 | snd_tea575x_exit(&fmr2->tea); |
291 | release_region(fmr2->io, 2); | 290 | release_region(fmr2->io, 2); |
@@ -293,7 +292,7 @@ static void __devexit fmr2_remove(struct fmr2 *fmr2) | |||
293 | kfree(fmr2); | 292 | kfree(fmr2); |
294 | } | 293 | } |
295 | 294 | ||
296 | static int __devexit fmr2_isa_remove(struct device *pdev, unsigned int ndev) | 295 | static int fmr2_isa_remove(struct device *pdev, unsigned int ndev) |
297 | { | 296 | { |
298 | fmr2_remove(dev_get_drvdata(pdev)); | 297 | fmr2_remove(dev_get_drvdata(pdev)); |
299 | dev_set_drvdata(pdev, NULL); | 298 | dev_set_drvdata(pdev, NULL); |
@@ -301,7 +300,7 @@ static int __devexit fmr2_isa_remove(struct device *pdev, unsigned int ndev) | |||
301 | return 0; | 300 | return 0; |
302 | } | 301 | } |
303 | 302 | ||
304 | static void __devexit fmr2_pnp_remove(struct pnp_dev *pdev) | 303 | static void fmr2_pnp_remove(struct pnp_dev *pdev) |
305 | { | 304 | { |
306 | fmr2_remove(pnp_get_drvdata(pdev)); | 305 | fmr2_remove(pnp_get_drvdata(pdev)); |
307 | pnp_set_drvdata(pdev, NULL); | 306 | pnp_set_drvdata(pdev, NULL); |
@@ -309,7 +308,7 @@ static void __devexit fmr2_pnp_remove(struct pnp_dev *pdev) | |||
309 | 308 | ||
310 | struct isa_driver fmr2_isa_driver = { | 309 | struct isa_driver fmr2_isa_driver = { |
311 | .match = fmr2_isa_match, | 310 | .match = fmr2_isa_match, |
312 | .remove = __devexit_p(fmr2_isa_remove), | 311 | .remove = fmr2_isa_remove, |
313 | .driver = { | 312 | .driver = { |
314 | .name = "radio-sf16fmr2", | 313 | .name = "radio-sf16fmr2", |
315 | }, | 314 | }, |
@@ -319,7 +318,7 @@ struct pnp_driver fmr2_pnp_driver = { | |||
319 | .name = "radio-sf16fmr2", | 318 | .name = "radio-sf16fmr2", |
320 | .id_table = fmr2_pnp_ids, | 319 | .id_table = fmr2_pnp_ids, |
321 | .probe = fmr2_pnp_probe, | 320 | .probe = fmr2_pnp_probe, |
322 | .remove = __devexit_p(fmr2_pnp_remove), | 321 | .remove = fmr2_pnp_remove, |
323 | }; | 322 | }; |
324 | 323 | ||
325 | static int __init fmr2_init(void) | 324 | static int __init fmr2_init(void) |