ar71xx: change generated Buffalo firmware versions
[openwrt.git] / target / linux / xburst / patches-2.6.37 / 300-battery-fixes.patch
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;
6
7 + if (!pdata) {
8 + dev_err(&pdev->dev, "No platform_data supplied\n");
9 + return -ENXIO;
10 + }
11 +
12 jz_battery = kzalloc(sizeof(*jz_battery), GFP_KERNEL);
13 if (!jz_battery) {
14 dev_err(&pdev->dev, "Failed to allocate driver structure\n");
This page took 0.040795 seconds and 5 git commands to generate.