"dev" may uninitialized or points to incorrect device. While at it make the message more informative. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>