diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 16:21:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 18:43:24 +0200 |
commit | 0d0cee17298576daa35f6d15a53944d36a3b7c4e (patch) | |
tree | f5a19dee68d340294cda2218e244e87509619c53 /drivers/eeprom | |
parent | 617192a1053a6614c2ad09054e5ee4f517f02308 (diff) | |
download | barebox-0d0cee17298576daa35f6d15a53944d36a3b7c4e.tar.gz barebox-0d0cee17298576daa35f6d15a53944d36a3b7c4e.tar.xz |
of: partition: Register the of partition fixup for of partition users
at24, at25 and mci core are using of_parse_partitions(). Register the
fixup for them aswell.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/eeprom')
-rw-r--r-- | drivers/eeprom/at24.c | 1 | ||||
-rw-r--r-- | drivers/eeprom/at25.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c index 4ae3776554..1227286fbe 100644 --- a/drivers/eeprom/at24.c +++ b/drivers/eeprom/at24.c @@ -500,6 +500,7 @@ static int at24_probe(struct device_d *dev) goto err_devfs_create; of_parse_partitions(&at24->cdev, dev->device_node); + of_partitions_register_fixup(&at24->cdev); return 0; diff --git a/drivers/eeprom/at25.c b/drivers/eeprom/at25.c index f7f8368c4b..1caaebd371 100644 --- a/drivers/eeprom/at25.c +++ b/drivers/eeprom/at25.c @@ -360,6 +360,8 @@ static int at25_probe(struct device_d *dev) dev_dbg(dev, "%s probed\n", at25->cdev.name); of_parse_partitions(&at25->cdev, dev->device_node); + of_partitions_register_fixup(&at25->cdev); + return 0; fail: |