2015-05-08 22:56 GMT+08:00 zhangfei <zhangfei.gao@xxxxxxxxxx>: > > > On 05/08/2015 08:50 AM, Axel Lin wrote: >> >> Make the modalias match driver name, this is required to make module >> auto-loading work. >> >> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> > > > Thanks Axel > > Could you also share the info what's the condition of auto-loading module. > > What I am test here is change the names works. > - .name = "hix5hd2-i2c", > + .name = "i2c-hix5hd2", > > Change MODULE_ALIAS("platform:hix5hd2-i2c") does not works here. > Do I make some mistake? The driver name needs to match the platform device name. I have no idea why you change the driver name and it still work. In drivers/base/platform.c, the platform_uevent sends uevenet with MODALIAS=platform:pdev->name. so the MODULE_ALIAS needs to match pdev->name. Maybe forgot running depmod -a? -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html