summaryrefslogtreecommitdiff
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2017-08-09 12:37:30 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-28 01:12:14 +0300
commit61e220adf68553b6e5f61b9339ce9d3e92df27cb (patch)
treef786bf6a0779383dd71b38ddd95edab31c0c4ac3 /drivers/media/pci
parent537b5c840c2f53991fcb00164ee09dfd8cfc2099 (diff)
downloadlinux-61e220adf68553b6e5f61b9339ce9d3e92df27cb.tar.xz
media: i2c: adv748x: Export I2C device table entries as module aliases
The I2C core always reports a MODALIAS of the form i2c:<foo> even if the device was registered via OF, and the driver is only exporting the OF ID table entries as module aliases. So if the driver is built as module, autoload won't work since udev/kmod won't be able to match the registered OF device with its driver module. Before this patch: $ modinfo drivers/media/i2c/adv748x/adv748x.ko | grep alias alias: of:N*T*Cadi,adv7482C* alias: of:N*T*Cadi,adv7482 alias: of:N*T*Cadi,adv7481C* alias: of:N*T*Cadi,adv7481 After this patch: modinfo drivers/media/i2c/adv748x/adv748x.ko | grep alias alias: of:N*T*Cadi,adv7482C* alias: of:N*T*Cadi,adv7482 alias: of:N*T*Cadi,adv7481C* alias: of:N*T*Cadi,adv7481 alias: i2c:adv7482 alias: i2c:adv7481 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci')
0 files changed, 0 insertions, 0 deletions