PM / devfreq: exynos-nocp: Fix module autoload
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 19 Oct 2016 21:06:25 +0000 (18:06 -0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:29 +0000 (14:33 +0900)
commit0a0cfa2bb6b2671c3c3c6bae1d20bed5db0d6ade
treef1ddd7561a5737b9ffc9cab21fba2fbf5e8c93ba
parent0f1b5a471f5e9bba0a78650b5dc6d2c10e08abf7
PM / devfreq: exynos-nocp: Fix module autoload

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/devfreq/event/exynos-nocp.ko | grep alias
$

After this patch:

$ modinfo drivers/devfreq/event/exynos-nocp.ko | grep alias
alias:          of:N*T*Csamsung,exynos5420-nocpC*
alias:          of:N*T*Csamsung,exynos5420-nocp

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/event/exynos-nocp.c