]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
drivers/hvc: Add missing __devexit_p()
authorMike Frysinger <vapier@gentoo.org>
Wed, 10 Jun 2009 09:42:30 +0000 (09:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 16 Jun 2009 04:15:44 +0000 (14:15 +1000)
The remove function uses __devexit, so the .remove assignment needs
__devexit_p() to fix a build error with hotplug disabled.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/hvc_iseries.c
drivers/char/hvc_vio.c
drivers/char/hvcs.c

index 449727b6166d417174b2ce3c662d0da31af73830..936d05bf37fa3264ae48ec539f0787d6a1a7c3cc 100644 (file)
@@ -241,7 +241,7 @@ static int __devexit hvc_vio_remove(struct vio_dev *vdev)
 static struct vio_driver hvc_vio_driver = {
        .id_table       = hvc_driver_table,
        .probe          = hvc_vio_probe,
-       .remove         = hvc_vio_remove,
+       .remove         = __devexit_p(hvc_vio_remove),
        .driver         = {
                .name   = hvc_driver_name,
                .owner  = THIS_MODULE,
index bd62dc86b47d09148f7ee80932031d8b7ecf5fe5..c72b994652ace78b816b4e3041e86825c01ff348 100644 (file)
@@ -113,7 +113,7 @@ static int __devexit hvc_vio_remove(struct vio_dev *vdev)
 static struct vio_driver hvc_vio_driver = {
        .id_table       = hvc_driver_table,
        .probe          = hvc_vio_probe,
-       .remove         = hvc_vio_remove,
+       .remove         = __devexit_p(hvc_vio_remove),
        .driver         = {
                .name   = hvc_driver_name,
                .owner  = THIS_MODULE,
index c76bccf5354dc77f1b97bdb3ea22266d8154faa5..2724d628527f0be6dad52b223007e9fed04f4ed0 100644 (file)
@@ -868,7 +868,7 @@ static int __devexit hvcs_remove(struct vio_dev *dev)
 static struct vio_driver hvcs_vio_driver = {
        .id_table       = hvcs_driver_table,
        .probe          = hvcs_probe,
-       .remove         = hvcs_remove,
+       .remove         = __devexit_p(hvcs_remove),
        .driver         = {
                .name   = hvcs_driver_name,
                .owner  = THIS_MODULE,