diff mbox

[3/3] ARM: pxa: declare battery device on poodle

Message ID 1427711971-8164-3-git-send-email-dbaryshkov@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dmitry Baryshkov March 30, 2015, 10:39 a.m. UTC
Declare a battery platform device for SL-5600 (poodle) platform.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 arch/arm/mach-pxa/poodle.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Robert Jarzmik April 3, 2015, 7:29 p.m. UTC | #1
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> writes:

> Declare a battery platform device for SL-5600 (poodle) platform.
Why ? Is there a driver for it ? I didn't found any in driver/power.

Cheers.

--
Robert
Dmitry Baryshkov April 3, 2015, 7:32 p.m. UTC | #2
2015-04-03 22:29 GMT+03:00 Robert Jarzmik <robert.jarzmik@free.fr>:
> Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> writes:
>
>> Declare a battery platform device for SL-5600 (poodle) platform.
> Why ? Is there a driver for it ? I didn't found any in driver/power.

Due to my error it was submitted separately from these patches.
http://thread.gmane.org/gmane.linux.power-management.general/58546
diff mbox

Patch

diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index 596e756..90d679a 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -466,6 +466,11 @@  static struct platform_device poodle_power_device = {
 	.dev.platform_data	= &poodle_power_data,
 };
 
+static struct platform_device poodle_battery_device = {
+	.name			= "poodle-battery",
+	.id			= -1,
+};
+
 static struct platform_device *devices[] __initdata = {
 	&poodle_locomo_device,
 	&poodle_scoop_device,
@@ -474,6 +479,7 @@  static struct platform_device *devices[] __initdata = {
 	&sharpsl_nand_device,
 	&sharpsl_rom_device,
 	&poodle_power_device,
+	&poodle_battery_device,
 };
 
 static struct i2c_board_info __initdata poodle_i2c_devices[] = {