]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] S3C: Do not set clk->owner field if unset
authorBen Dooks <ben-linux@fluff.org>
Fri, 15 May 2009 14:21:57 +0000 (15:21 +0100)
committerBen Dooks <ben-linux@fluff.org>
Fri, 15 May 2009 14:21:57 +0000 (15:21 +0100)
commitd3626cf6a9fdb095287d12f3900a4ebd8458771c
tree4e75e9231468f45d1ae0da792f7bda56541d909f
parenta0808933ec8a51e1f5cb56411a05628797f6a437
[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 <ben-linux@fluff.org>
arch/arm/plat-s3c/clock.c