From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Date: Sat, 15 Oct 2016 20:27:11 +0300 From: Krzysztof Kozlowski To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Kukjin Kim , Michael Turquette , Stephen Boyd , Chanwoo Choi , linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki , Tomasz Figa , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] clk: samsung: clk-exynos-audss: Fix module autoload Message-ID: <20161015172711.GA6465@kozik-lap> References: <1476470645-22159-1-git-send-email-javier@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <1476470645-22159-1-git-send-email-javier@osg.samsung.com> List-ID: On Fri, Oct 14, 2016 at 03:44:05PM -0300, Javier Martinez Canillas wrote: > 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/clk/samsung/clk-exynos-audss.ko | grep alias > alias: platform:exynos-audss-clk > > After this patch: > > $ modinfo drivers/clk/samsung/clk-exynos-audss.ko | grep alias > alias: platform:exynos-audss-clk > alias: of:N*T*Csamsung,exynos5420-audss-clockC* > alias: of:N*T*Csamsung,exynos5420-audss-clock > alias: of:N*T*Csamsung,exynos5410-audss-clockC* > alias: of:N*T*Csamsung,exynos5410-audss-clock > alias: of:N*T*Csamsung,exynos5250-audss-clockC* > alias: of:N*T*Csamsung,exynos5250-audss-clock > alias: of:N*T*Csamsung,exynos4210-audss-clockC* > alias: of:N*T*Csamsung,exynos4210-audss-clock > > Signed-off-by: Javier Martinez Canillas > --- > > drivers/clk/samsung/clk-exynos-audss.c | 1 + > 1 file changed, 1 insertion(+) Indeed, this was missed by 4d252fd5719b thus I think it could be mentioned as fix tag (just for reference...): Fixes: 4d252fd5719b ("clk: samsung: Allow modular build of the Audio Subsystem CLKCON driver") Anyway, this fixes the issue, so: Reviewed-by: Krzysztof Kozlowski Tested-by: Krzysztof Kozlowski Best regards, Krzysztof