SM501: Check SM501 ID register on initialisation
authorBen Dooks <ben-linux@fluff.org>
Sun, 24 Jun 2007 00:16:31 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Jun 2007 15:59:11 +0000 (08:59 -0700)
commit1e27dbe7746f3bcbcf1f9a37f31df4b886e36ce3
treecca92108cf97c5c13b0c9e7f85f11da8bd513fb5
parentffd65af0e67a054e1e2393c9b0995c03c47cdc30
SM501: Check SM501 ID register on initialisation

When binding the driver, check the ID register for a valid identity, in case
the SM501 is not functioning correctly.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mfd/sm501.c
include/linux/sm501-regs.h