diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-09-28 01:57:16 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-09-29 10:22:26 -0700 |
commit | a4c84e6aafda0ddd8cb004c464cd11e47e211049 (patch) | |
tree | e90b4595e8326a42a5cf224edc27cbd393508907 | |
parent | a823e76138466225d0a9f45520c5654132939a01 (diff) | |
download | op-kernel-dev-a4c84e6aafda0ddd8cb004c464cd11e47e211049.zip op-kernel-dev-a4c84e6aafda0ddd8cb004c464cd11e47e211049.tar.gz |
leds: gpio: cleanup the leds-gpio driver
Remove stray blank line and space.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
-rw-r--r-- | drivers/leds/leds-gpio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 1b1e617..b4518c8 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -36,7 +36,7 @@ struct gpio_led_data { static void gpio_led_work(struct work_struct *work) { - struct gpio_led_data *led_dat = + struct gpio_led_data *led_dat = container_of(work, struct gpio_led_data, work); if (led_dat->blinking) { @@ -235,14 +235,12 @@ static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev) } #endif /* CONFIG_OF_GPIO */ - static int gpio_led_probe(struct platform_device *pdev) { struct gpio_led_platform_data *pdata = dev_get_platdata(&pdev->dev); struct gpio_leds_priv *priv; int i, ret = 0; - if (pdata && pdata->num_leds) { priv = devm_kzalloc(&pdev->dev, sizeof_gpio_leds_priv(pdata->num_leds), |