On Fri, Dec 11, 2015 at 12:23:11AM +0000, Trent Piepho wrote: > If a new cdev doesn't have a device_node defined when passed to > devfs_create(), set it to the device_node of the parent device, if one > exists. > > For non-partitions, like ocotp or eeprom devices, this is the correct > thing to do. Partitions need to use, and do use, a different node. > > The code from commit 274e0b8dc48956babeaa2faf70bf8066e656b621 to set > device_node in ocotp can be removed. > > Signed-off-by: Trent Piepho <tpiepho@xxxxxxxxxxxxxx> > --- > Tested this to work for loading the env from an at24 eeprom. Should work > for any other non-partitioned device too. Applied, thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox