Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371005
b: refs/heads/master
c: efe7d64
h: refs/heads/master
i:
  371003: 591b6f9
v: v3
  • Loading branch information
Mika Westerberg authored and Wolfram Sang committed Apr 15, 2013
1 parent 4a18920 commit 4e7e64d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 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: 76cf3fc844a46b5cdb94da98bffcbd45d4c355b8
refs/heads/master: efe7d640ef486c4c0c305641dbcacc6918542b76
9 changes: 0 additions & 9 deletions trunk/drivers/i2c/busses/i2c-designware-platdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,11 @@ static u32 i2c_dw_get_clk_rate_khz(struct dw_i2c_dev *dev)
static int dw_i2c_acpi_configure(struct platform_device *pdev)
{
struct dw_i2c_dev *dev = platform_get_drvdata(pdev);
struct acpi_device *adev;
int busno, ret;

if (!ACPI_HANDLE(&pdev->dev))
return -ENODEV;

ret = acpi_bus_get_device(ACPI_HANDLE(&pdev->dev), &adev);
if (ret)
return -ENODEV;

dev->adapter.nr = -1;
if (adev->pnp.unique_id && !kstrtoint(adev->pnp.unique_id, 0, &busno))
dev->adapter.nr = busno;

dev->tx_fifo_depth = 32;
dev->rx_fifo_depth = 32;
return 0;
Expand Down

0 comments on commit 4e7e64d

Please sign in to comment.