9
0
Fork 0

partition: do not overwrite an existing DT node pointer

This is necessary to find EEPROM devices using the device tree nodes.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
Jan Luebbe 2015-05-30 13:46:04 +02:00
parent 918e1c52cd
commit aa24845e29
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node)
if (IS_ERR(new))
new = NULL;
if (new && new->dev)
if (new && new->dev && !new->dev->device_node)
new->dev->device_node = node;
free(filename);