diff options
| author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-11-23 23:35:10 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-11-23 23:35:10 -0500 |
| commit | 153a9df01c0d1ecdc56161c7a0f830325145dd64 (patch) | |
| tree | 6645b72a6036bb2491d1e54317009259e41bf568 /drivers/input/touchscreen | |
| parent | ed7b1f6d6ea1054ea4fe293a7fd8015fc3803d93 (diff) | |
Input: handle serio_register_driver() errors
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen')
| -rw-r--r-- | drivers/input/touchscreen/elo.c | 3 | ||||
| -rw-r--r-- | drivers/input/touchscreen/gunze.c | 3 | ||||
| -rw-r--r-- | drivers/input/touchscreen/h3600_ts_input.c | 3 | ||||
| -rw-r--r-- | drivers/input/touchscreen/mtouch.c | 3 | ||||
| -rw-r--r-- | drivers/input/touchscreen/penmount.c | 3 | ||||
| -rw-r--r-- | drivers/input/touchscreen/touchright.c | 3 | ||||
| -rw-r--r-- | drivers/input/touchscreen/touchwin.c | 3 |
7 files changed, 7 insertions, 14 deletions
diff --git a/drivers/input/touchscreen/elo.c b/drivers/input/touchscreen/elo.c index 913e1b73bb..9d61cd133d 100644 --- a/drivers/input/touchscreen/elo.c +++ b/drivers/input/touchscreen/elo.c | |||
| @@ -397,8 +397,7 @@ static struct serio_driver elo_drv = { | |||
| 397 | 397 | ||
| 398 | static int __init elo_init(void) | 398 | static int __init elo_init(void) |
| 399 | { | 399 | { |
| 400 | serio_register_driver(&elo_drv); | 400 | return serio_register_driver(&elo_drv); |
| 401 | return 0; | ||
| 402 | } | 401 | } |
| 403 | 402 | ||
| 404 | static void __exit elo_exit(void) | 403 | static void __exit elo_exit(void) |
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c index 44f397fff7..9157eb148e 100644 --- a/drivers/input/touchscreen/gunze.c +++ b/drivers/input/touchscreen/gunze.c | |||
| @@ -194,8 +194,7 @@ static struct serio_driver gunze_drv = { | |||
| 194 | 194 | ||
| 195 | static int __init gunze_init(void) | 195 | static int __init gunze_init(void) |
| 196 | { | 196 | { |
| 197 | serio_register_driver(&gunze_drv); | 197 | return serio_register_driver(&gunze_drv); |
| 198 | return 0; | ||
| 199 | } | 198 | } |
| 200 | 199 | ||
| 201 | static void __exit gunze_exit(void) | 200 | static void __exit gunze_exit(void) |
diff --git a/drivers/input/touchscreen/h3600_ts_input.c b/drivers/input/touchscreen/h3600_ts_input.c index d9e61ee05e..c4116d4f64 100644 --- a/drivers/input/touchscreen/h3600_ts_input.c +++ b/drivers/input/touchscreen/h3600_ts_input.c | |||
| @@ -478,8 +478,7 @@ static struct serio_driver h3600ts_drv = { | |||
| 478 | 478 | ||
| 479 | static int __init h3600ts_init(void) | 479 | static int __init h3600ts_init(void) |
| 480 | { | 480 | { |
| 481 | serio_register_driver(&h3600ts_drv); | 481 | return serio_register_driver(&h3600ts_drv); |
| 482 | return 0; | ||
| 483 | } | 482 | } |
| 484 | 483 | ||
| 485 | static void __exit h3600ts_exit(void) | 484 | static void __exit h3600ts_exit(void) |
diff --git a/drivers/input/touchscreen/mtouch.c b/drivers/input/touchscreen/mtouch.c index c66b399774..c3c2d735d0 100644 --- a/drivers/input/touchscreen/mtouch.c +++ b/drivers/input/touchscreen/mtouch.c | |||
| @@ -208,8 +208,7 @@ static struct serio_driver mtouch_drv = { | |||
| 208 | 208 | ||
| 209 | static int __init mtouch_init(void) | 209 | static int __init mtouch_init(void) |
| 210 | { | 210 | { |
| 211 | serio_register_driver(&mtouch_drv); | 211 | return serio_register_driver(&mtouch_drv); |
| 212 | return 0; | ||
| 213 | } | 212 | } |
| 214 | 213 | ||
| 215 | static void __exit mtouch_exit(void) | 214 | static void __exit mtouch_exit(void) |
diff --git a/drivers/input/touchscreen/penmount.c b/drivers/input/touchscreen/penmount.c index 6c7d0c2c76..bd2767991a 100644 --- a/drivers/input/touchscreen/penmount.c +++ b/drivers/input/touchscreen/penmount.c | |||
| @@ -171,8 +171,7 @@ static struct serio_driver pm_drv = { | |||
| 171 | 171 | ||
| 172 | static int __init pm_init(void) | 172 | static int __init pm_init(void) |
| 173 | { | 173 | { |
| 174 | serio_register_driver(&pm_drv); | 174 | return serio_register_driver(&pm_drv); |
| 175 | return 0; | ||
| 176 | } | 175 | } |
| 177 | 176 | ||
| 178 | static void __exit pm_exit(void) | 177 | static void __exit pm_exit(void) |
diff --git a/drivers/input/touchscreen/touchright.c b/drivers/input/touchscreen/touchright.c index c74f74e57a..35ba46c6ad 100644 --- a/drivers/input/touchscreen/touchright.c +++ b/drivers/input/touchscreen/touchright.c | |||
| @@ -182,8 +182,7 @@ static struct serio_driver tr_drv = { | |||
| 182 | 182 | ||
| 183 | static int __init tr_init(void) | 183 | static int __init tr_init(void) |
| 184 | { | 184 | { |
| 185 | serio_register_driver(&tr_drv); | 185 | return serio_register_driver(&tr_drv); |
| 186 | return 0; | ||
| 187 | } | 186 | } |
| 188 | 187 | ||
| 189 | static void __exit tr_exit(void) | 188 | static void __exit tr_exit(void) |
diff --git a/drivers/input/touchscreen/touchwin.c b/drivers/input/touchscreen/touchwin.c index 9911820fa2..4dc073daca 100644 --- a/drivers/input/touchscreen/touchwin.c +++ b/drivers/input/touchscreen/touchwin.c | |||
| @@ -189,8 +189,7 @@ static struct serio_driver tw_drv = { | |||
| 189 | 189 | ||
| 190 | static int __init tw_init(void) | 190 | static int __init tw_init(void) |
| 191 | { | 191 | { |
| 192 | serio_register_driver(&tw_drv); | 192 | return serio_register_driver(&tw_drv); |
| 193 | return 0; | ||
| 194 | } | 193 | } |
| 195 | 194 | ||
| 196 | static void __exit tw_exit(void) | 195 | static void __exit tw_exit(void) |
