]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/misc/lis3lv02d/lis3lv02d_spi.c: add lis3lv02d device tree init
authorAnilKumar Ch <anilkumar@ti.com>
Fri, 21 Sep 2012 01:01:58 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:59:08 +0000 (15:59 +1000)
commit6bc8871007627299d909484e1265577716f37787
treecb29780e1ead647529e1dba7a70a5c90ee7cec16
parent0a7f61870b8561d8fa6137bf9e5a3b6578b59cf0
drivers/misc/lis3lv02d/lis3lv02d_spi.c: add lis3lv02d device tree init

Add lis3lv02d device tree initialization code/API to take pdata from
device node.  Also remove CONFIG_OF ifdef from the driver, if CONFIG_OF is
not defined then OF APIs returns 0.

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/misc/lis3lv02d/lis3lv02d_spi.c