gpio: syscon: reduce message level when direction reg offset not in dt
authorGrygorii Strashko <[email protected]>
Tue, 24 Mar 2015 18:42:42 +0000 (20:42 +0200)
committerLinus Walleij <[email protected]>
Fri, 27 Mar 2015 10:17:08 +0000 (11:17 +0100)
commitc6ac19dac2683a8b06aebcc10cb1c711b555a949
tree83892175e9c3948a5d1684e1db653a6906428253
parent4de60970abf9f49737f51ec6e7a1e3bcf6d36742
gpio: syscon: reduce message level when direction reg offset not in dt

Now GPIO syscon driver produces bunch of warnings during the
boot of Kesytone 2 SoCs:
 gpio-syscon soc:keystone_dsp_gpio@02620240: can't read the dir register offset!
 gpio-syscon soc:keystone_dsp_gpio@2620244: can't read the dir register offset!

This message unintentionally was added using dev_err(), but its
actual log level is debug, because third cell of "ti,syscon-dev" is
optional.

Hence change it to dev_dbg() as it should be.

This patch fixes commit:
 5a3e3f8 ("gpio: syscon: retriave syscon node and regs offsets from dt")

Reported-by: Russell King <[email protected]>
Tested-by: Murali Karicheri <[email protected]>
Acked-by: Santosh Shilimkar <[email protected]>
Signed-off-by: Grygorii Strashko <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/gpio/gpio-syscon.c