Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173847
b: refs/heads/master
c: 91b52ca
h: refs/heads/master
i:
  173845: 6948fd8
  173843: 4be7617
  173839: 45a27ba
v: v3
  • Loading branch information
Shinya Kuribayashi authored and Ben Dooks committed Dec 9, 2009
1 parent 9c1a540 commit bc9a45e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: e28000a38da803de8d90727bec45f3d7c831a59a
refs/heads/master: 91b52caec040064b4df540b72ad7f18a22fd0508
12 changes: 6 additions & 6 deletions trunk/drivers/i2c/busses/i2c-designware.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
{
struct dw_i2c_dev *dev;
struct i2c_adapter *adap;
struct resource *mem, *irq, *ioarea;
int r;
struct resource *mem, *ioarea;
int irq, r;

/* NOTE: driver uses the static register mapping */
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Expand All @@ -558,10 +558,10 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
return -EINVAL;
}

irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
if (!irq) {
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(&pdev->dev, "no irq resource?\n");
return -EINVAL;
return irq; /* -ENXIO */
}

ioarea = request_mem_region(mem->start, resource_size(mem),
Expand All @@ -581,7 +581,7 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
tasklet_init(&dev->pump_msg, dw_i2c_pump_msg, (unsigned long) dev);
mutex_init(&dev->lock);
dev->dev = get_device(&pdev->dev);
dev->irq = irq->start;
dev->irq = irq;
platform_set_drvdata(pdev, dev);

dev->clk = clk_get(&pdev->dev, NULL);
Expand Down

0 comments on commit bc9a45e

Please sign in to comment.