From: Dmitry Eremin-Solenikov Date: Tue, 27 Apr 2010 13:18:22 +0000 (+0400) Subject: tosa_battery: Fix build error due to direct driver_data usage X-Git-Tag: v2.6.35-rc1~412^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06b9e650ce5eaf14ac1486b2f05baaf2ba22ad22;p=pandora-kernel.git tosa_battery: Fix build error due to direct driver_data usage The driver isn't buildable since 2.6.32 (i.e. commit b4028437 "Driver core: move dev_get/set_drvdata to drivers/base/dd.c"): CC tosa_battery.o tosa_battery.c: In function 'tosa_read_bat': tosa_battery.c:64: error: 'struct device' has no member named 'driver_data' tosa_battery.c: In function 'tosa_read_temp': tosa_battery.c:84: error: 'struct device' has no member named 'driver_data' Nowadays we must not access driver_data directly, use dev_get_drvdata() instead. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Andrew Morton Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed