cdev: Add function to find cdev by device_node
This adds a device_node member to struct cdev and a function
to find a cdev by device_node.
This also removes the setting of cdev->dev->device_node in
the of partition parser. We must not set the device since it
may not refer to a partition but to a whole device with partitions.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 89ca3fc commit 3f68a7698d882f1e1ce5827fac92736e19f76018
@Sascha Hauer Sascha Hauer authored on 9 Apr 2014
Showing 3 changed files
View
drivers/of/partition.c
View
fs/devfs-core.c
View
include/driver.h