MODULE_DEVICE_TABLE: fix gscps2
Subsystems (3)
PATCH 1/1 MODULE_DEVICE_TABLE: fix gscps2
The patch "module: fix types of device tables aliases" newly requires that invocations of
MODULE_DEVICE_TABLE(type, name);
come *after* the definition of `name'. That is reasonable, but gscps2 wasn't doing this. Fix it.
Signed-off-by Geert Uytterhoeven <[email protected]>
---
One more fix for your collection...
parisc/allmodconfig
http://kisskb.ellerman.id.au/kisskb/buildresult/12358386/
--- drivers/input/serio/gscps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/serio/gscps2.c +1 -1
@@ -40,7 +40,6 @@MODULE_AUTHOR ("Laurent Canet <[email protected]>, Thibaut Varene <[email protected]>, Helge Deller <[email protected]>" );MODULE_DESCRIPTION ("HP GSC PS2 port driver" );MODULE_LICENSE ("GPL" ); -MODULE_DEVICE_TABLE (parisc, gscps2_device_tbl);#define PFX "gscps2.c: "
@@ -439,6 +438,7 @@ static struct parisc_device_id gscps2_device_tbl[] = {#endif { 0, } /* 0 terminated list */ }; +MODULE_DEVICE_TABLE (parisc, gscps2_device_tbl);static struct parisc_driver parisc_ps2_driver = { .name ="gsc_ps2" ,
Signature · 1 line
1.9.1
Quoted 9 lines · Geert Uytterhoeven
The patch "module: fix types of device tables aliases" newly requires that invocations of
MODULE_DEVICE_TABLE(type, name);come *after* the definition of `name'. That is reasonable, but gscps2 wasn't doing this. Fix it.
Signed-off-by Geert Uytterhoeven <[email protected]>
Applied, thank you.
Quoted 32 lines
---
One more fix for your collection...parisc/allmodconfig
http://kisskb.ellerman.id.au/kisskb/buildresult/12358386/--- drivers/input/serio/gscps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/serio/gscps2.c +1
-1@@ -40,7 +40,6 @@MODULE_AUTHOR ("Laurent Canet <[email protected]>, Thibaut Varene <[email protected]>, Helge Deller <[email protected]>" );MODULE_DESCRIPTION ("HP GSC PS2 port driver" );MODULE_LICENSE ("GPL" ); -MODULE_DEVICE_TABLE (parisc, gscps2_device_tbl);#define PFX "gscps2.c: "@@ -439,6 +438,7 @@ static struct parisc_device_id gscps2_device_tbl[] = {#endif { 0, } /* 0 terminated list */ }; +MODULE_DEVICE_TABLE (parisc, gscps2_device_tbl);static struct parisc_driver parisc_ps2_driver = { .name ="gsc_ps2" ,Signature · 1 line
1.9.1
Signature · 1 line
Dmitry