Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfe6977a authored by Nishanth Menon's avatar Nishanth Menon Committed by Tony Lindgren
Browse files

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: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c54bae1f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {}