* [PATCH] leds: Use linux/gpio.h rather than asm/gpio.h
@ 2012-02-04 16:20 Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2012-02-04 16:20 UTC (permalink / raw)
To: Andrew Morton, Richard Purdie; +Cc: linux-kernel, Mark Brown
Direct usage of the asm include has long been deprecated by the
introduction of gpiolib.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
drivers/leds/leds-gpio.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 7df74cb..f4c470a 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -13,6 +13,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
+#include <linux/gpio.h>
#include <linux/leds.h>
#include <linux/of_platform.h>
#include <linux/of_gpio.h>
@@ -20,8 +21,6 @@
#include <linux/workqueue.h>
#include <linux/module.h>
-#include <asm/gpio.h>
-
struct gpio_led_data {
struct led_classdev cdev;
unsigned gpio;
--
1.7.9.rc1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-04 16:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-04 16:20 [PATCH] leds: Use linux/gpio.h rather than asm/gpio.h Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®