diff options
author | Nishanth Menon <nm@ti.com> | 2010-08-02 06:18:12 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-08-02 06:18:12 -0400 |
commit | bfe6977ac7b96e5a6665546c0efd733cd290d0ca (patch) | |
tree | aba6dd9d6603bd9dd5bf7bb9765df5e721bacf97 /arch/arm/mach-omap2/serial.c | |
parent | c54bae1f06075e49206e7c327b4213e8b5a9b5fb (diff) |
omap2/3/4: serial: kill dev_attr_sleep_timeout sparse warn
Remove the following sparse warnings by declaring attr as static:
arch/arm/mach-omap2/serial.c:627:1: warning: symbol 'dev_attr_sleep_timeout'
was not declared. Should it be static?
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 9476c1c3aaa9..584a2ed39ab4 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, | |||
558 | return n; | 558 | return n; |
559 | } | 559 | } |
560 | 560 | ||
561 | DEVICE_ATTR(sleep_timeout, 0644, sleep_timeout_show, sleep_timeout_store); | 561 | static DEVICE_ATTR(sleep_timeout, 0644, sleep_timeout_show, |
562 | sleep_timeout_store); | ||
562 | #define DEV_CREATE_FILE(dev, attr) WARN_ON(device_create_file(dev, attr)) | 563 | #define DEV_CREATE_FILE(dev, attr) WARN_ON(device_create_file(dev, attr)) |
563 | #else | 564 | #else |
564 | static inline void omap_uart_idle_init(struct omap_uart_state *uart) {} | 565 | static inline void omap_uart_idle_init(struct omap_uart_state *uart) {} |