[PATCH 1/7] imx: ocotp: Add code to initialize 'cdev->device_node'
Andrey Smirnov
andrew.smirnov at gmail.com
Sun Dec 6 23:52:37 PST 2015
In order for cdev_by_device_node() to be able to return approprate
character device for <&ocotp> phandle cdev->device_node needs to be
initialized with dev->device_node. This patche takes care of that
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
arch/arm/mach-imx/ocotp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/ocotp.c b/arch/arm/mach-imx/ocotp.c
index c99a003..6ff5ee4 100644
--- a/arch/arm/mach-imx/ocotp.c
+++ b/arch/arm/mach-imx/ocotp.c
@@ -426,6 +426,7 @@ static int imx_ocotp_probe(struct device_d *dev)
cdev->priv = priv;
cdev->size = 192;
cdev->name = "imx-ocotp";
+ cdev->device_node = dev->device_node;
ret = devfs_create(cdev);
--
2.5.0
More information about the barebox
mailing list