From: Ben Dooks Date: Fri, 15 May 2009 14:21:57 +0000 (+0100) Subject: [ARM] S3C: Do not set clk->owner field if unset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ac19bb443255579b30f05af5e688b6c73b1bb91;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [ARM] S3C: Do not set clk->owner field if unset The s3c24xx_register_clock() function has been doing a test on clk->owner to see if it is NULL, and then setting itself as the owner if clk->owner == NULL. This is not needed, arch/arm/plat-s3c/clock.c cannot be compiled as a module, and even if it was, it should not be playing with this field if it being registered from somewhere else. The best course of action is to remove this bit of code completely. Signed-off-by: Ben Dooks --- diff --git a/arch/arm/plat-s3c/clock.c b/arch/arm/plat-s3c/clock.c index b6be76e2fe51..4d01ef1a25dd 100644 --- a/arch/arm/plat-s3c/clock.c +++ b/arch/arm/plat-s3c/clock.c @@ -306,8 +306,6 @@ struct clk s3c24xx_uclk = { int s3c24xx_register_clock(struct clk *clk) { - clk->owner = THIS_MODULE; - if (clk->enable == NULL) clk->enable = clk_null_enable;