diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-18 00:24:42 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-04-24 13:24:59 -0400 |
commit | d7b5247bbcfba2bc96d4b3dec9086a4f1a31363b (patch) | |
tree | a5783cceafbf50812fade605fba0b12e1b02cf0b /drivers/input/touchscreen | |
parent | b39b04403bba4f807ee6e57ae2f4407187588fcd (diff) |
Input: add MODULE_ALIAS() to hotpluggable platform modules
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias
is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable
"input" platform drivers, to re-enable auto loading.
[dbrownell@users.sourceforge.net: more drivers, registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/corgi_ts.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/jornada720_ts.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c index 99d92f5c93d6..765e964b7969 100644 --- a/drivers/input/touchscreen/corgi_ts.c +++ b/drivers/input/touchscreen/corgi_ts.c | |||
@@ -361,6 +361,7 @@ static struct platform_driver corgits_driver = { | |||
361 | .resume = corgits_resume, | 361 | .resume = corgits_resume, |
362 | .driver = { | 362 | .driver = { |
363 | .name = "corgi-ts", | 363 | .name = "corgi-ts", |
364 | .owner = THIS_MODULE, | ||
364 | }, | 365 | }, |
365 | }; | 366 | }; |
366 | 367 | ||
@@ -380,3 +381,4 @@ module_exit(corgits_exit); | |||
380 | MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>"); | 381 | MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>"); |
381 | MODULE_DESCRIPTION("Corgi TouchScreen Driver"); | 382 | MODULE_DESCRIPTION("Corgi TouchScreen Driver"); |
382 | MODULE_LICENSE("GPL"); | 383 | MODULE_LICENSE("GPL"); |
384 | MODULE_ALIAS("platform:corgi-ts"); | ||
diff --git a/drivers/input/touchscreen/jornada720_ts.c b/drivers/input/touchscreen/jornada720_ts.c index 42a1c9a1940e..742242111bf1 100644 --- a/drivers/input/touchscreen/jornada720_ts.c +++ b/drivers/input/touchscreen/jornada720_ts.c | |||
@@ -160,11 +160,15 @@ static int __devexit jornada720_ts_remove(struct platform_device *pdev) | |||
160 | return 0; | 160 | return 0; |
161 | } | 161 | } |
162 | 162 | ||
163 | /* work with hotplug and coldplug */ | ||
164 | MODULE_ALIAS("platform:jornada_ts"); | ||
165 | |||
163 | static struct platform_driver jornada720_ts_driver = { | 166 | static struct platform_driver jornada720_ts_driver = { |
164 | .probe = jornada720_ts_probe, | 167 | .probe = jornada720_ts_probe, |
165 | .remove = __devexit_p(jornada720_ts_remove), | 168 | .remove = __devexit_p(jornada720_ts_remove), |
166 | .driver = { | 169 | .driver = { |
167 | .name = "jornada_ts", | 170 | .name = "jornada_ts", |
171 | .owner = THIS_MODULE, | ||
168 | }, | 172 | }, |
169 | }; | 173 | }; |
170 | 174 | ||