Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190109
b: refs/heads/master
c: 7c6bd20
h: refs/heads/master
i:
  190107: 6d2d0a4
v: v3
  • Loading branch information
Mika Westerberg authored and Ben Dooks committed Apr 20, 2010
1 parent bee78e0 commit e77dadf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da9c99fc32e2d84f80672d192a7aaf7239057a2e
refs/heads/master: 7c6bd2010fced38444c9fd658f4c6ce61bd185bf
10 changes: 5 additions & 5 deletions trunk/drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,11 @@ omap_i2c_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, dev);

if (cpu_is_omap7xx())
dev->reg_shift = 1;
else
dev->reg_shift = 2;

if ((r = omap_i2c_get_clocks(dev)) != 0)
goto err_iounmap;

Expand All @@ -926,11 +931,6 @@ omap_i2c_probe(struct platform_device *pdev)
dev->b_hw = 1; /* Enable hardware fixes */
}

if (cpu_is_omap7xx())
dev->reg_shift = 1;
else
dev->reg_shift = 2;

/* reset ASAP, clearing any IRQs */
omap_i2c_init(dev);

Expand Down

0 comments on commit e77dadf

Please sign in to comment.