]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: twl-core: Move 'inuse' check early at probe time
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Jan 2013 13:53:56 +0000 (14:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:51 +0000 (00:22 +0100)
commit6382a0614144901af1cbbfdf9b9a618f5dfb8548
tree3bc1be702cd90b9fbfdff1bae045865aee537a15
parent7e2e6c5758de94ec22686b30e7b906a3ddcd9896
mfd: twl-core: Move 'inuse' check early at probe time

We can fail earlier in case multiple instance of the twl-core is tried to
be loaded.
The twl-core by design only supports one instance.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl-core.c