1 --- a/drivers/power/jz4740-battery.c
2 +++ b/drivers/power/jz4740-battery.c
3 @@ -246,6 +246,11 @@ static int __devinit jz_battery_probe(st
4 struct jz_battery *jz_battery;
5 struct power_supply *battery;
8 + dev_err(&pdev->dev, "No platform_data supplied\n");
12 jz_battery = kzalloc(sizeof(*jz_battery), GFP_KERNEL);
14 dev_err(&pdev->dev, "Failed to allocate driver structure\n");