aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-nomadik.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 13:40:57 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 13:40:57 -0500
commitfe3c560b8a22cb28e54fe8950abef38e88d75831 (patch)
tree88db8742152559e1840832970066816e72a9009b /drivers/i2c/busses/i2c-nomadik.c
parentd20056032e20061db6583f517a4d3ea4492a94f1 (diff)
parentdad92924ea4c9167e64a2835ec9310c73570b10b (diff)
Merge branch 'for-linus/i2c-2638' of git://git.fluff.org/bjdooks/linux
* 'for-linus/i2c-2638' of git://git.fluff.org/bjdooks/linux: i2c-bfin-twi: move setup to the earlier subsys initcall i2c-bfin-twi: handle faulty slave devices better i2c-mv64xxx: send repeated START between messages in xfer i2c-nomadik: fix regression on adapter name i2c-omap: Set latency requirements only once for several messages i2c-eg20t: add driver for Intel EG20T i2c-ocores: add some device tree documentation i2c-ocores: Use devres for resource allocation i2c-ocores: Adapt for device tree i2c-iop3xx: add iomem annotation
Diffstat (limited to 'drivers/i2c/busses/i2c-nomadik.c')
-rw-r--r--drivers/i2c/busses/i2c-nomadik.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c
index 2bd3469b3071..594ed5059c4a 100644
--- a/drivers/i2c/busses/i2c-nomadik.c
+++ b/drivers/i2c/busses/i2c-nomadik.c
@@ -872,6 +872,8 @@ static int __devinit nmk_i2c_probe(struct platform_device *pdev)
872 adap->owner = THIS_MODULE; 872 adap->owner = THIS_MODULE;
873 adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; 873 adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
874 adap->algo = &nmk_i2c_algo; 874 adap->algo = &nmk_i2c_algo;
875 snprintf(adap->name, sizeof(adap->name),
876 "Nomadik I2C%d at %lx", pdev->id, (unsigned long)res->start);
875 877
876 /* fetch the controller id */ 878 /* fetch the controller id */
877 adap->nr = pdev->id; 879 adap->nr = pdev->id;
@@ -891,8 +893,8 @@ static int __devinit nmk_i2c_probe(struct platform_device *pdev)
891 goto err_init_hw; 893 goto err_init_hw;
892 } 894 }
893 895
894 dev_dbg(&pdev->dev, "initialize I2C%d bus on virtual " 896 dev_info(&pdev->dev, "initialize %s on virtual "
895 "base %p\n", pdev->id, dev->virtbase); 897 "base %p\n", adap->name, dev->virtbase);
896 898
897 ret = i2c_add_numbered_adapter(adap); 899 ret = i2c_add_numbered_adapter(adap);
898 if (ret) { 900 if (ret) {