drm/rockchip: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Mon, 30 Nov 2015 14:56:56 +0000 (14:56 +0000)
committerMark Yao <mark.yao@rock-chips.com>
Wed, 2 Dec 2015 01:13:19 +0000 (09:13 +0800)
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c

index 4730ae46e5a7e534e535a334ff076780855d4abb..040559af14edfdaae7ba55f177f7661d49a7ff24 100644 (file)
@@ -374,6 +374,7 @@ static const struct of_device_id vop_driver_dt_match[] = {
          .data = &rk3288_vop },
        {},
 };
+MODULE_DEVICE_TABLE(of, vop_driver_dt_match);
 
 static inline void vop_writel(struct vop *vop, uint32_t offset, uint32_t v)
 {