of: platform: Fix possible crash
"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>
1 parent 29b6d42 commit d95f27aaa83381ce210d3b285ad2647ce0313bbb
@Alexander Shiyan Alexander Shiyan authored on 7 Jan 2014
Sascha Hauer committed on 10 Jan 2014
Showing 1 changed file
View
drivers/of/platform.c