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/ddbridge | |
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/ddbridge')
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-core.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index feff57ee5a08..36e34522b9a8 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c | |||
@@ -1542,7 +1542,7 @@ static void ddb_unmap(struct ddb *dev) | |||
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | 1544 | ||
1545 | static void __devexit ddb_remove(struct pci_dev *pdev) | 1545 | static void ddb_remove(struct pci_dev *pdev) |
1546 | { | 1546 | { |
1547 | struct ddb *dev = (struct ddb *) pci_get_drvdata(pdev); | 1547 | struct ddb *dev = (struct ddb *) pci_get_drvdata(pdev); |
1548 | 1548 | ||
@@ -1565,8 +1565,7 @@ static void __devexit ddb_remove(struct pci_dev *pdev) | |||
1565 | } | 1565 | } |
1566 | 1566 | ||
1567 | 1567 | ||
1568 | static int __devinit ddb_probe(struct pci_dev *pdev, | 1568 | static int ddb_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
1569 | const struct pci_device_id *id) | ||
1570 | { | 1569 | { |
1571 | struct ddb *dev; | 1570 | struct ddb *dev; |
1572 | int stat = 0; | 1571 | int stat = 0; |
@@ -1679,7 +1678,7 @@ static struct ddb_info ddb_v6 = { | |||
1679 | .subvendor = _subvend, .subdevice = _subdev, \ | 1678 | .subvendor = _subvend, .subdevice = _subdev, \ |
1680 | .driver_data = (unsigned long)&_driverdata } | 1679 | .driver_data = (unsigned long)&_driverdata } |
1681 | 1680 | ||
1682 | static const struct pci_device_id ddb_id_tbl[] __devinitdata = { | 1681 | static const struct pci_device_id ddb_id_tbl[] = { |
1683 | DDB_ID(DDVID, 0x0002, DDVID, 0x0001, ddb_octopus), | 1682 | DDB_ID(DDVID, 0x0002, DDVID, 0x0001, ddb_octopus), |
1684 | DDB_ID(DDVID, 0x0003, DDVID, 0x0001, ddb_octopus), | 1683 | DDB_ID(DDVID, 0x0003, DDVID, 0x0001, ddb_octopus), |
1685 | DDB_ID(DDVID, 0x0003, DDVID, 0x0002, ddb_octopus_le), | 1684 | DDB_ID(DDVID, 0x0003, DDVID, 0x0002, ddb_octopus_le), |
@@ -1696,7 +1695,7 @@ static struct pci_driver ddb_pci_driver = { | |||
1696 | .name = "DDBridge", | 1695 | .name = "DDBridge", |
1697 | .id_table = ddb_id_tbl, | 1696 | .id_table = ddb_id_tbl, |
1698 | .probe = ddb_probe, | 1697 | .probe = ddb_probe, |
1699 | .remove = __devexit_p(ddb_remove), | 1698 | .remove = ddb_remove, |
1700 | }; | 1699 | }; |
1701 | 1700 | ||
1702 | static __init int module_init_ddbridge(void) | 1701 | static __init int module_init_ddbridge(void) |