[PATCH] eeprom: at24: Enable OF partition parsing

Sascha Hauer s.hauer at pengutronix.de
Fri Nov 8 09:26:07 EST 2013


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/eeprom/at24.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c
index 4b2afc4..5e5b359 100644
--- a/drivers/eeprom/at24.c
+++ b/drivers/eeprom/at24.c
@@ -435,6 +435,8 @@ static int at24_probe(struct device_d *dev)
 
 	devfs_create(&at24->cdev);
 
+	of_parse_partitions(&at24->cdev, dev->device_node);
+
 	return 0;
 
 err_clients:
-- 
1.8.4.rc3




More information about the barebox mailing list