aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-efm32.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-efm32.c')
-rw-r--r--drivers/i2c/busses/i2c-efm32.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-efm32.c b/drivers/i2c/busses/i2c-efm32.c
index f7eccd682de9..10b8323b08d4 100644
--- a/drivers/i2c/busses/i2c-efm32.c
+++ b/drivers/i2c/busses/i2c-efm32.c
@@ -370,7 +370,13 @@ static int efm32_i2c_probe(struct platform_device *pdev)
370 return ret; 370 return ret;
371 } 371 }
372 372
373 ret = of_property_read_u32(np, "efm32,location", &location); 373
374 ret = of_property_read_u32(np, "energymicro,location", &location);
375
376 if (ret)
377 /* fall back to wrongly namespaced property */
378 ret = of_property_read_u32(np, "efm32,location", &location);
379
374 if (!ret) { 380 if (!ret) {
375 dev_dbg(&pdev->dev, "using location %u\n", location); 381 dev_dbg(&pdev->dev, "using location %u\n", location);
376 } else { 382 } else {