of: of_find_node_by_devpath: Fix offset in mtd devices
When a cdev is a mtd device the partition offset must be used from
there, not from the cdev.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent eead107 commit 811cd961093c168648f349960762b98d7b337086
@Sascha Hauer Sascha Hauer authored on 11 May 2017
Showing 1 changed file
View
drivers/of/of_path.c