mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Revert "parisc: led: fix reference leak on failed device registration"
This reverts commit 707610bccc.
platform_device_register() is going to be fixed instead.
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
254f49634e
commit
8135b89a37
|
|
@ -543,10 +543,8 @@ static void __init register_led_regions(void)
|
|||
|
||||
static int __init startup_leds(void)
|
||||
{
|
||||
if (platform_device_register(&platform_leds)) {
|
||||
pr_info("LED: failed to register LEDs\n");
|
||||
platform_device_put(&platform_leds);
|
||||
}
|
||||
if (platform_device_register(&platform_leds))
|
||||
printk(KERN_INFO "LED: failed to register LEDs\n");
|
||||
register_led_regions();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user