of_path: only handle no driver for device if it is on a bus
This fixes a regression in __of_find_path() for flash devices created by
the cadence-quadspi driver, which do not have 'dev->driver' set.  Such
devices do not have 'dev->bus' set either, so we can use that to qualify
the existing test.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4f836c3 commit 90abfd3fba8dbc8d5d350081fb63681b57ceafa4
@Ian Abbott Ian Abbott authored on 12 Jan 2017
Sascha Hauer committed on 13 Jan 2017
Showing 1 changed file
View
drivers/of/of_path.c