diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:05:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:01 -0500 |
commit | 8590dbc79a0ff5d7ab16b2b1743684c241ae3c65 (patch) | |
tree | 0d7483f5cbeee5954d112197e76f452890ad6b01 | |
parent | 6dfb6715b58a9d184188188779f9f8f27e558042 (diff) |
Drivers: virtio: 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, 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: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/virtio/virtio_balloon.c | 4 | ||||
-rw-r--r-- | drivers/virtio/virtio_mmio.c | 6 | ||||
-rw-r--r-- | drivers/virtio/virtio_pci.c | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index d19fe3e323b..797e1c79a10 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c | |||
@@ -500,7 +500,7 @@ static void remove_common(struct virtio_balloon *vb) | |||
500 | vb->vdev->config->del_vqs(vb->vdev); | 500 | vb->vdev->config->del_vqs(vb->vdev); |
501 | } | 501 | } |
502 | 502 | ||
503 | static void __devexit virtballoon_remove(struct virtio_device *vdev) | 503 | static void virtballoon_remove(struct virtio_device *vdev) |
504 | { | 504 | { |
505 | struct virtio_balloon *vb = vdev->priv; | 505 | struct virtio_balloon *vb = vdev->priv; |
506 | 506 | ||
@@ -552,7 +552,7 @@ static struct virtio_driver virtio_balloon_driver = { | |||
552 | .driver.owner = THIS_MODULE, | 552 | .driver.owner = THIS_MODULE, |
553 | .id_table = id_table, | 553 | .id_table = id_table, |
554 | .probe = virtballoon_probe, | 554 | .probe = virtballoon_probe, |
555 | .remove = __devexit_p(virtballoon_remove), | 555 | .remove = virtballoon_remove, |
556 | .config_changed = virtballoon_changed, | 556 | .config_changed = virtballoon_changed, |
557 | #ifdef CONFIG_PM | 557 | #ifdef CONFIG_PM |
558 | .freeze = virtballoon_freeze, | 558 | .freeze = virtballoon_freeze, |
diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 634f80bcdbd..31f966f4d27 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c | |||
@@ -440,7 +440,7 @@ static struct virtio_config_ops virtio_mmio_config_ops = { | |||
440 | 440 | ||
441 | /* Platform device */ | 441 | /* Platform device */ |
442 | 442 | ||
443 | static int __devinit virtio_mmio_probe(struct platform_device *pdev) | 443 | static int virtio_mmio_probe(struct platform_device *pdev) |
444 | { | 444 | { |
445 | struct virtio_mmio_device *vm_dev; | 445 | struct virtio_mmio_device *vm_dev; |
446 | struct resource *mem; | 446 | struct resource *mem; |
@@ -493,7 +493,7 @@ static int __devinit virtio_mmio_probe(struct platform_device *pdev) | |||
493 | return register_virtio_device(&vm_dev->vdev); | 493 | return register_virtio_device(&vm_dev->vdev); |
494 | } | 494 | } |
495 | 495 | ||
496 | static int __devexit virtio_mmio_remove(struct platform_device *pdev) | 496 | static int virtio_mmio_remove(struct platform_device *pdev) |
497 | { | 497 | { |
498 | struct virtio_mmio_device *vm_dev = platform_get_drvdata(pdev); | 498 | struct virtio_mmio_device *vm_dev = platform_get_drvdata(pdev); |
499 | 499 | ||
@@ -638,7 +638,7 @@ MODULE_DEVICE_TABLE(of, virtio_mmio_match); | |||
638 | 638 | ||
639 | static struct platform_driver virtio_mmio_driver = { | 639 | static struct platform_driver virtio_mmio_driver = { |
640 | .probe = virtio_mmio_probe, | 640 | .probe = virtio_mmio_probe, |
641 | .remove = __devexit_p(virtio_mmio_remove), | 641 | .remove = virtio_mmio_remove, |
642 | .driver = { | 642 | .driver = { |
643 | .name = "virtio-mmio", | 643 | .name = "virtio-mmio", |
644 | .owner = THIS_MODULE, | 644 | .owner = THIS_MODULE, |
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index e3ecc94591a..0c142892c10 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c | |||
@@ -676,8 +676,8 @@ static void virtio_pci_release_dev(struct device *_d) | |||
676 | } | 676 | } |
677 | 677 | ||
678 | /* the PCI probing function */ | 678 | /* the PCI probing function */ |
679 | static int __devinit virtio_pci_probe(struct pci_dev *pci_dev, | 679 | static int virtio_pci_probe(struct pci_dev *pci_dev, |
680 | const struct pci_device_id *id) | 680 | const struct pci_device_id *id) |
681 | { | 681 | { |
682 | struct virtio_pci_device *vp_dev; | 682 | struct virtio_pci_device *vp_dev; |
683 | int err; | 683 | int err; |
@@ -751,7 +751,7 @@ out: | |||
751 | return err; | 751 | return err; |
752 | } | 752 | } |
753 | 753 | ||
754 | static void __devexit virtio_pci_remove(struct pci_dev *pci_dev) | 754 | static void virtio_pci_remove(struct pci_dev *pci_dev) |
755 | { | 755 | { |
756 | struct virtio_pci_device *vp_dev = pci_get_drvdata(pci_dev); | 756 | struct virtio_pci_device *vp_dev = pci_get_drvdata(pci_dev); |
757 | 757 | ||
@@ -822,7 +822,7 @@ static struct pci_driver virtio_pci_driver = { | |||
822 | .name = "virtio-pci", | 822 | .name = "virtio-pci", |
823 | .id_table = virtio_pci_id_table, | 823 | .id_table = virtio_pci_id_table, |
824 | .probe = virtio_pci_probe, | 824 | .probe = virtio_pci_probe, |
825 | .remove = __devexit_p(virtio_pci_remove), | 825 | .remove = virtio_pci_remove, |
826 | #ifdef CONFIG_PM | 826 | #ifdef CONFIG_PM |
827 | .driver.pm = &virtio_pci_pm_ops, | 827 | .driver.pm = &virtio_pci_pm_ops, |
828 | #endif | 828 | #endif |