浏览代码

usb: phy: isp1301: Export I2C module alias information

The I2C core always reports the MODALIAS uevent as "i2c:<client name"
regardless if the device was registered using OF or platform code so
So the driver needs to export the I2C table and this be built into
the module or udev won't have the necessary information to auto load
the module when the device is added.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Javier Martinez Canillas 10 年之前
父节点
当前提交
8fb7ab5043
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/usb/phy/phy-isp1301.c

+ 1 - 0
drivers/usb/phy/phy-isp1301.c

@@ -31,6 +31,7 @@ static const struct i2c_device_id isp1301_id[] = {
 	{ "isp1301", 0 },
 	{ }
 };
+MODULE_DEVICE_TABLE(i2c, isp1301_id);
 
 static struct i2c_client *isp1301_i2c_client;