Skip to contentSkip to conversation

parport: fix platform driver hotplug/coldplug

PATCH In review David Brownell 2 participants 2 messages Jul 2, 2008 Parallel port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parport: fix platform driver hotplug/coldplug

From: Kay Sievers <[email protected]>

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable parport platform drivers, to re-enable auto loading.

---
 drivers/parport/parport_ax88796.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/parport/parport_ax88796.c +2 -0
@@ -406,6 +406,8 @@ static int parport_ax88796_resume(struct
 #define parport_ax88796_resume  NULL
 #endif
 
+MODULE_ALIAS("platform:ax88796-pp");
+
 static struct platform_driver axdrv = {
 	.driver		= {
 		.name	= "ax88796-pp",
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · David Brownell

From: Kay Sievers <[email protected]>

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable parport platform drivers, to re-enable auto loading.

Quoted 15 lines
---
 drivers/parport/parport_ax88796.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/parport/parport_ax88796.c +2 -0
@@ -406,6 +406,8 @@ static int parport_ax88796_resume(struct
 #define parport_ax88796_resume  NULL
 #endif
 
+MODULE_ALIAS("platform:ax88796-pp");
+
 static struct platform_driver axdrv = {
 	.driver		= {
 		.name	= "ax88796-pp",
Signature · 4 lines
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.