]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] v4l: rcar-fcp: Fix module autoload for OF registration
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 17 Oct 2016 15:44:09 +0000 (13:44 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 15:17:07 +0000 (13:17 -0200)
commitd6023d33a4ac9bc53975c9029a59135d71a76268
tree256aa04283ecd20e3ecf61405363dec0679269b6
parent3184c3bf67d1360a303dd02edccab41e37a637bd
[media] v4l: rcar-fcp: Fix module autoload for OF registration

If the driver is built as a module, autoload won't work because the module
alias information is not filled. So user-space can't match the registered
device with the corresponding module.

Export the module alias information using the MODULE_DEVICE_TABLE() macro.

Before this patch:

$ modinfo drivers/media/platform/rcar-fcp.ko | grep alias
alias:          rcar-fcp

After this patch:

$ modinfo drivers/media/platform/rcar-fcp.ko | grep alias
alias:          rcar-fcp
alias:          of:N*T*Crenesas,fcpvC*
alias:          of:N*T*Crenesas,fcpv
alias:          of:N*T*Crenesas,fcpfC*
alias:          of:N*T*Crenesas,fcpf

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-fcp.c