i2c: Fix platform driver hotplug/coldplug
Since 43cc71eed1
, the platform
modalias is prefixed with "platform:". Add MODULE_ALIAS() to the
hotpluggable I2C platform drivers, to allow module auto loading.
[ db: add some more drivers ]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
committed by
Jean Delvare
parent
da672773d8
commit
add8eda7f2
@@ -298,7 +298,7 @@ static int at91_i2c_resume(struct platform_device *pdev)
|
||||
#endif
|
||||
|
||||
/* work with "modprobe at91_i2c" from hotplugging or coldplugging */
|
||||
MODULE_ALIAS("at91_i2c");
|
||||
MODULE_ALIAS("platform:at91_i2c");
|
||||
|
||||
static struct platform_driver at91_i2c_driver = {
|
||||
.probe = at91_i2c_probe,
|
||||
|
Reference in New Issue
Block a user