linux: satisfy newer modpost requirements II
PATCH 1/1 linux: satisfy newer modpost requirements II
References to __devinit probe functions are considered valid by newer modprobe if the containing structure is named in certain ways. Use the _driver suffix where necessary.
As usual, written and tested on 2.6.25-rc5 and made apply to the 2.6.18 tree without further testing.
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/fbfront/xenfb.c +3 -3
@@ -727,7 +727,7 @@ static const struct xenbus_device_id xen };MODULE_ALIAS ("xen:vfb" ); -static struct xenbus_driver xenfb = { +static struct xenbus_driver xenfb_driver = { .name ="vfb" , .owner =THIS_MODULE , .ids = xenfb_ids,
@@ -745,12 +745,12 @@ static int __init xenfb_init(void)if (is_initial_xendomain ())return -ENODEV ; -return xenbus_register_frontend (&xenfb); +return xenbus_register_frontend (&xenfb_driver); } static void __exit xenfb_cleanup(void) { -return xenbus_unregister_driver (&xenfb); +return xenbus_unregister_driver (&xenfb_driver); }module_init (xenfb_init);
drivers/xen/fbfront/xenkbd.c +3 -3
@@ -311,7 +311,7 @@ static const struct xenbus_device_id xen };MODULE_ALIAS ("xen:vkbd" ); -static struct xenbus_driver xenkbd = { +static struct xenbus_driver xenkbd_driver = { .name ="vkbd" , .owner =THIS_MODULE , .ids = xenkbd_ids,
@@ -329,12 +329,12 @@ static int __init xenkbd_init(void)if (is_initial_xendomain ())return -ENODEV ; -return xenbus_register_frontend (&xenkbd); +return xenbus_register_frontend (&xenkbd_driver); } static void __exit xenkbd_cleanup(void) { -return xenbus_unregister_driver (&xenkbd); +return xenbus_unregister_driver (&xenkbd_driver); }module_init (xenkbd_init);
drivers/xen/netfront/netfront.c +3 -3
@@ -2149,7 +2149,7 @@ static const struct xenbus_device_id netMODULE_ALIAS ("xen:vif" ); -static struct xenbus_driver netfront = { +static struct xenbus_driver netfront_driver = { .name ="vif" , .owner =THIS_MODULE , .ids = netfront_ids,
@@ -2187,7 +2187,7 @@ static int __init netif_init(void) (void )register_inetaddr_notifier (¬ifier_inetdev);#endif -return xenbus_register_frontend (&netfront); +return xenbus_register_frontend (&netfront_driver); }module_init (netif_init);
@@ -2203,7 +2203,7 @@ static void __exit netif_exit(void)netif_exit_accel (); -return xenbus_unregister_driver (&netfront); +return xenbus_unregister_driver (&netfront_driver); }module_exit (netif_exit);