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/pci/pluto2 | |
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/pci/pluto2')
-rw-r--r-- | drivers/media/pci/pluto2/pluto2.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/drivers/media/pci/pluto2/pluto2.c b/drivers/media/pci/pluto2/pluto2.c index f148b19a206a..2290faee5852 100644 --- a/drivers/media/pci/pluto2/pluto2.c +++ b/drivers/media/pci/pluto2/pluto2.c | |||
@@ -240,7 +240,7 @@ static void pluto_set_dma_addr(struct pluto *pluto) | |||
240 | pluto_writereg(pluto, REG_PCAR, pluto->dma_addr); | 240 | pluto_writereg(pluto, REG_PCAR, pluto->dma_addr); |
241 | } | 241 | } |
242 | 242 | ||
243 | static int __devinit pluto_dma_map(struct pluto *pluto) | 243 | static int pluto_dma_map(struct pluto *pluto) |
244 | { | 244 | { |
245 | pluto->dma_addr = pci_map_single(pluto->pdev, pluto->dma_buf, | 245 | pluto->dma_addr = pci_map_single(pluto->pdev, pluto->dma_buf, |
246 | TS_DMA_BYTES, PCI_DMA_FROMDEVICE); | 246 | TS_DMA_BYTES, PCI_DMA_FROMDEVICE); |
@@ -368,7 +368,7 @@ static irqreturn_t pluto_irq(int irq, void *dev_id) | |||
368 | return IRQ_HANDLED; | 368 | return IRQ_HANDLED; |
369 | } | 369 | } |
370 | 370 | ||
371 | static void __devinit pluto_enable_irqs(struct pluto *pluto) | 371 | static void pluto_enable_irqs(struct pluto *pluto) |
372 | { | 372 | { |
373 | u32 val = pluto_readreg(pluto, REG_TSCR); | 373 | u32 val = pluto_readreg(pluto, REG_TSCR); |
374 | 374 | ||
@@ -394,7 +394,7 @@ static void pluto_disable_irqs(struct pluto *pluto) | |||
394 | pluto_write_tscr(pluto, val); | 394 | pluto_write_tscr(pluto, val); |
395 | } | 395 | } |
396 | 396 | ||
397 | static int __devinit pluto_hw_init(struct pluto *pluto) | 397 | static int pluto_hw_init(struct pluto *pluto) |
398 | { | 398 | { |
399 | pluto_reset_frontend(pluto, 1); | 399 | pluto_reset_frontend(pluto, 1); |
400 | 400 | ||
@@ -505,7 +505,7 @@ static int pluto2_request_firmware(struct dvb_frontend *fe, | |||
505 | return request_firmware(fw, name, &pluto->pdev->dev); | 505 | return request_firmware(fw, name, &pluto->pdev->dev); |
506 | } | 506 | } |
507 | 507 | ||
508 | static struct tda1004x_config pluto2_fe_config __devinitdata = { | 508 | static struct tda1004x_config pluto2_fe_config = { |
509 | .demod_address = I2C_ADDR_TDA10046 >> 1, | 509 | .demod_address = I2C_ADDR_TDA10046 >> 1, |
510 | .invert = 1, | 510 | .invert = 1, |
511 | .invert_oclk = 0, | 511 | .invert_oclk = 0, |
@@ -515,7 +515,7 @@ static struct tda1004x_config pluto2_fe_config __devinitdata = { | |||
515 | .request_firmware = pluto2_request_firmware, | 515 | .request_firmware = pluto2_request_firmware, |
516 | }; | 516 | }; |
517 | 517 | ||
518 | static int __devinit frontend_init(struct pluto *pluto) | 518 | static int frontend_init(struct pluto *pluto) |
519 | { | 519 | { |
520 | int ret; | 520 | int ret; |
521 | 521 | ||
@@ -536,14 +536,14 @@ static int __devinit frontend_init(struct pluto *pluto) | |||
536 | return 0; | 536 | return 0; |
537 | } | 537 | } |
538 | 538 | ||
539 | static void __devinit pluto_read_rev(struct pluto *pluto) | 539 | static void pluto_read_rev(struct pluto *pluto) |
540 | { | 540 | { |
541 | u32 val = pluto_readreg(pluto, REG_MISC) & MISC_DVR; | 541 | u32 val = pluto_readreg(pluto, REG_MISC) & MISC_DVR; |
542 | dev_info(&pluto->pdev->dev, "board revision %d.%d\n", | 542 | dev_info(&pluto->pdev->dev, "board revision %d.%d\n", |
543 | (val >> 12) & 0x0f, (val >> 4) & 0xff); | 543 | (val >> 12) & 0x0f, (val >> 4) & 0xff); |
544 | } | 544 | } |
545 | 545 | ||
546 | static void __devinit pluto_read_mac(struct pluto *pluto, u8 *mac) | 546 | static void pluto_read_mac(struct pluto *pluto, u8 *mac) |
547 | { | 547 | { |
548 | u32 val = pluto_readreg(pluto, REG_MMAC); | 548 | u32 val = pluto_readreg(pluto, REG_MMAC); |
549 | mac[0] = (val >> 8) & 0xff; | 549 | mac[0] = (val >> 8) & 0xff; |
@@ -560,7 +560,7 @@ static void __devinit pluto_read_mac(struct pluto *pluto, u8 *mac) | |||
560 | dev_info(&pluto->pdev->dev, "MAC %pM\n", mac); | 560 | dev_info(&pluto->pdev->dev, "MAC %pM\n", mac); |
561 | } | 561 | } |
562 | 562 | ||
563 | static int __devinit pluto_read_serial(struct pluto *pluto) | 563 | static int pluto_read_serial(struct pluto *pluto) |
564 | { | 564 | { |
565 | struct pci_dev *pdev = pluto->pdev; | 565 | struct pci_dev *pdev = pluto->pdev; |
566 | unsigned int i, j; | 566 | unsigned int i, j; |
@@ -588,8 +588,7 @@ out: | |||
588 | return 0; | 588 | return 0; |
589 | } | 589 | } |
590 | 590 | ||
591 | static int __devinit pluto2_probe(struct pci_dev *pdev, | 591 | static int pluto2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
592 | const struct pci_device_id *ent) | ||
593 | { | 592 | { |
594 | struct pluto *pluto; | 593 | struct pluto *pluto; |
595 | struct dvb_adapter *dvb_adapter; | 594 | struct dvb_adapter *dvb_adapter; |
@@ -742,7 +741,7 @@ err_kfree: | |||
742 | goto out; | 741 | goto out; |
743 | } | 742 | } |
744 | 743 | ||
745 | static void __devexit pluto2_remove(struct pci_dev *pdev) | 744 | static void pluto2_remove(struct pci_dev *pdev) |
746 | { | 745 | { |
747 | struct pluto *pluto = pci_get_drvdata(pdev); | 746 | struct pluto *pluto = pci_get_drvdata(pdev); |
748 | struct dvb_adapter *dvb_adapter = &pluto->dvb_adapter; | 747 | struct dvb_adapter *dvb_adapter = &pluto->dvb_adapter; |
@@ -777,7 +776,7 @@ static void __devexit pluto2_remove(struct pci_dev *pdev) | |||
777 | #define PCI_DEVICE_ID_PLUTO2 0x0001 | 776 | #define PCI_DEVICE_ID_PLUTO2 0x0001 |
778 | #endif | 777 | #endif |
779 | 778 | ||
780 | static struct pci_device_id pluto2_id_table[] __devinitdata = { | 779 | static struct pci_device_id pluto2_id_table[] = { |
781 | { | 780 | { |
782 | .vendor = PCI_VENDOR_ID_SCM, | 781 | .vendor = PCI_VENDOR_ID_SCM, |
783 | .device = PCI_DEVICE_ID_PLUTO2, | 782 | .device = PCI_DEVICE_ID_PLUTO2, |
@@ -794,7 +793,7 @@ static struct pci_driver pluto2_driver = { | |||
794 | .name = DRIVER_NAME, | 793 | .name = DRIVER_NAME, |
795 | .id_table = pluto2_id_table, | 794 | .id_table = pluto2_id_table, |
796 | .probe = pluto2_probe, | 795 | .probe = pluto2_probe, |
797 | .remove = __devexit_p(pluto2_remove), | 796 | .remove = pluto2_remove, |
798 | }; | 797 | }; |
799 | 798 | ||
800 | static int __init pluto2_init(void) | 799 | static int __init pluto2_init(void) |