]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 3018/1: S3C2410 - check de-referenced device is really a platform device
authorBen Dooks <ben-linux@fluff.org>
Tue, 18 Oct 2005 06:51:34 +0000 (07:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 18 Oct 2005 06:51:34 +0000 (07:51 +0100)
commite319c5a153c38132f48ec0eb5896cf51a10b0c8f
tree242684c30b3bcd8fd15046af94aa3c7874521690
parent19b41f6741682cbdb1bf4ddda8d1d0dee69e3ef1
[ARM] 3018/1: S3C2410 - check de-referenced device is really a platform device

Patch from Ben Dooks

Check that the device we are looking at is really
a platform device before trying to cast it to one
to find out the platform bus number.

Thanks to RMK for pointing this out.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-s3c2410/clock.c