mfd: ab8500-core improved error handling in get_chip_id
authorMattias Wallin <mattias.wallin@stericsson.com>
Thu, 2 Dec 2010 14:08:32 +0000 (15:08 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Jan 2011 11:37:46 +0000 (12:37 +0100)
commit6bce7bf1a1f8a79a57ff69910c115e1d2ed8913d
tree2ce014804679792a95e4ee7739951d09af8d989c
parentec9d0cf578007fa3f86fa34d77d9ccba82f03b29
mfd: ab8500-core improved error handling in get_chip_id

We check for dev before dereferencing it.

Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c