Skip to content

Commit

Permalink
usb: phy: isp1301: Export I2C module alias information
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Martinez Canillas authored and Felipe Balbi committed Sep 21, 2015
1 parent 51b91b7 commit 8fb7ab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/phy/phy-isp1301.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8fb7ab5

Please sign in to comment.