Commit e364ca92 authored by Mike Frysinger's avatar Mike Frysinger Committed by Benjamin Herrenschmidt

drivers/hvc: Add missing __devexit_p()

The remove function uses __devexit, so the .remove assignment needs
__devexit_p() to fix a build error with hotplug disabled.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 48dce82c
...@@ -241,7 +241,7 @@ static int __devexit hvc_vio_remove(struct vio_dev *vdev) ...@@ -241,7 +241,7 @@ static int __devexit hvc_vio_remove(struct vio_dev *vdev)
static struct vio_driver hvc_vio_driver = { static struct vio_driver hvc_vio_driver = {
.id_table = hvc_driver_table, .id_table = hvc_driver_table,
.probe = hvc_vio_probe, .probe = hvc_vio_probe,
.remove = hvc_vio_remove, .remove = __devexit_p(hvc_vio_remove),
.driver = { .driver = {
.name = hvc_driver_name, .name = hvc_driver_name,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -113,7 +113,7 @@ static int __devexit hvc_vio_remove(struct vio_dev *vdev) ...@@ -113,7 +113,7 @@ static int __devexit hvc_vio_remove(struct vio_dev *vdev)
static struct vio_driver hvc_vio_driver = { static struct vio_driver hvc_vio_driver = {
.id_table = hvc_driver_table, .id_table = hvc_driver_table,
.probe = hvc_vio_probe, .probe = hvc_vio_probe,
.remove = hvc_vio_remove, .remove = __devexit_p(hvc_vio_remove),
.driver = { .driver = {
.name = hvc_driver_name, .name = hvc_driver_name,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -868,7 +868,7 @@ static int __devexit hvcs_remove(struct vio_dev *dev) ...@@ -868,7 +868,7 @@ static int __devexit hvcs_remove(struct vio_dev *dev)
static struct vio_driver hvcs_vio_driver = { static struct vio_driver hvcs_vio_driver = {
.id_table = hvcs_driver_table, .id_table = hvcs_driver_table,
.probe = hvcs_probe, .probe = hvcs_probe,
.remove = hvcs_remove, .remove = __devexit_p(hvcs_remove),
.driver = { .driver = {
.name = hvcs_driver_name, .name = hvcs_driver_name,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment