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>
1 parent 839aebc commit 274e0b8dc48956babeaa2faf70bf8066e656b621
@Andrey Smirnov Andrey Smirnov authored on 7 Dec 2015
Sascha Hauer committed on 7 Dec 2015
Showing 1 changed file
View
arch/arm/mach-imx/ocotp.c