diff mbox

[3/5] omap2/3/4: serial: kill dev_attr_sleep_timeout sparse warn

Message ID 1277266674-5906-4-git-send-email-nm@ti.com (mailing list archive)
State Accepted
Commit 965c85ddd59b04859e9a3b54f59fdbd5c2b773a1
Delegated to: Tony Lindgren
Headers show

Commit Message

Nishanth Menon June 23, 2010, 4:17 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 9476c1c..584a2ed 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -558,7 +558,8 @@  static ssize_t sleep_timeout_store(struct device *dev,
 	return n;
 }
 
-DEVICE_ATTR(sleep_timeout, 0644, sleep_timeout_show, sleep_timeout_store);
+static DEVICE_ATTR(sleep_timeout, 0644, sleep_timeout_show,
+		sleep_timeout_store);
 #define DEV_CREATE_FILE(dev, attr) WARN_ON(device_create_file(dev, attr))
 #else
 static inline void omap_uart_idle_init(struct omap_uart_state *uart) {}