Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32644
b: refs/heads/master
c: bca3bff
h: refs/heads/master
v: v3
  • Loading branch information
Chris Boot authored and Linus Torvalds committed Jul 15, 2006
1 parent a0c5a2c commit ad9cbba
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a4afee02a5dd4f20c08fca26e9b610e72d0bcbf0
refs/heads/master: bca3bffec9f37d4cb60b80fd0067f9c7550b5d57
7 changes: 4 additions & 3 deletions trunk/drivers/leds/leds-net48xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <asm/io.h>
#include <linux/scx200_gpio.h>

#define DRVNAME "net48xx-led"
#define NET48XX_ERROR_LED_GPIO 20

static struct platform_device *pdev;
Expand Down Expand Up @@ -66,13 +67,13 @@ static int net48xx_led_remove(struct platform_device *pdev)
}

static struct platform_driver net48xx_led_driver = {
.driver.owner = THIS_MODULE,
.probe = net48xx_led_probe,
.remove = net48xx_led_remove,
.suspend = net48xx_led_suspend,
.resume = net48xx_led_resume,
.driver = {
.name = "net48xx-led",
.name = DRVNAME,
.owner = THIS_MODULE,
},
};

Expand All @@ -89,7 +90,7 @@ static int __init net48xx_led_init(void)
if (ret < 0)
goto out;

pdev = platform_device_register_simple("net48xx-led", -1, NULL, 0);
pdev = platform_device_register_simple(DRVNAME, -1, NULL, 0);
if (IS_ERR(pdev)) {
ret = PTR_ERR(pdev);
platform_driver_unregister(&net48xx_led_driver);
Expand Down

0 comments on commit ad9cbba

Please sign in to comment.