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 35f3890 commit e648666112e7e99de621277e7c895a0341bd3c9d
@Sascha Hauer Sascha Hauer authored on 11 May 2017
Showing 1 changed file
View
drivers/of/of_path.c