diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2015-12-06 23:52:37 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-07 10:59:13 +0100 |
commit | 274e0b8dc48956babeaa2faf70bf8066e656b621 (patch) | |
tree | 1291bf16e49adf87c43d6744255a3bcc506f1962 /arch/arm/mach-imx/ocotp.c | |
parent | 839aebc4fe2f632afe4e4d1e6e883613ab27eb61 (diff) | |
download | barebox-274e0b8dc48956babeaa2faf70bf8066e656b621.tar.gz barebox-274e0b8dc48956babeaa2faf70bf8066e656b621.tar.xz |
imx: ocotp: Add code to initialize 'cdev->device_node'
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@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/ocotp.c')
-rw-r--r-- | arch/arm/mach-imx/ocotp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/ocotp.c b/arch/arm/mach-imx/ocotp.c index c99a003bb0..6ff5ee4efc 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); |