diff options
author | NeilBrown <neilb@suse.de> | 2012-02-15 18:21:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-15 17:17:50 -0800 |
commit | 9f3519d2ed26d2ede5b6432fb64af0e7e8ed13e3 (patch) | |
tree | 21c794c3dcc559208a1d161382e39b5b07e41564 /drivers/idle | |
parent | bc5bca53cca350eb90fc9f84c2e37ba6383807c3 (diff) | |
download | blackbird-op-linux-9f3519d2ed26d2ede5b6432fb64af0e7e8ed13e3.tar.gz blackbird-op-linux-9f3519d2ed26d2ede5b6432fb64af0e7e8ed13e3.zip |
w1: Fix w1_bq27000
w1_bq27000 adds a bq27000-battery platform device but does not provide
platform data for it. This causes the bq27x00 driver to dereference a NULL
pointer.
So provide the appropriate platform data. This requires modifying
w1_bq27000_read so that it find the w1 device as the parent of the bq device.
Also there is no point exporting w1_bq27000_read as nothing else uses it
or could use it. So make it static.
Finally, as there is no way to track how many batteries have been found, and
we will probably only find one, use an id number of '-1' to assert that this
is a unique instance.
Signed-off-by: NeilBrown <neilb@suse.de>
Tested-by: Thomas Weber <weber@corscience.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions