Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177527
b: refs/heads/master
c: 71e9dc7
h: refs/heads/master
i:
  177525: 7ca9076
  177523: 33d07a4
  177519: 6f6a4a7
v: v3
  • Loading branch information
Alan Jenkins authored and Len Brown committed Dec 10, 2009
1 parent 65b26fb commit 3b21c74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1fbf346c7c56d6b2f9d835d297bcb088baaff3a
refs/heads/master: 71e9dc73cb6b1351bdd5f732cef5dbef411b3219
8 changes: 5 additions & 3 deletions trunk/drivers/platform/x86/dell-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static int __init dell_init(void)

if (ret) {
printk(KERN_WARNING "dell-laptop: Unable to setup rfkill\n");
goto out;
goto fail_rfkill;
}

#ifdef CONFIG_ACPI
Expand Down Expand Up @@ -358,7 +358,7 @@ static int __init dell_init(void)
if (IS_ERR(dell_backlight_device)) {
ret = PTR_ERR(dell_backlight_device);
dell_backlight_device = NULL;
goto out;
goto fail_backlight;
}

dell_backlight_device->props.max_brightness = max_intensity;
Expand All @@ -368,13 +368,15 @@ static int __init dell_init(void)
}

return 0;
out:

fail_backlight:
if (wifi_rfkill)
rfkill_unregister(wifi_rfkill);
if (bluetooth_rfkill)
rfkill_unregister(bluetooth_rfkill);
if (wwan_rfkill)
rfkill_unregister(wwan_rfkill);
fail_rfkill:
kfree(da_tokens);
return ret;
}
Expand Down

0 comments on commit 3b21c74

Please sign in to comment.