i2c-sh7760.c (e5b2e3e742015dd2aa6bc7bcef2cb59b2de1221c) | i2c-sh7760.c (92dfb27240fea2776f61c5422472cb6defca7767) |
---|---|
1/* 2 * I2C bus driver for the SH7760 I2C Interfaces. 3 * 4 * (c) 2005-2008 MSC Vertriebsges.m.b.H, Manuel Lauss <mlau@msc-ge.com> 5 * 6 * licensed under the terms outlined in the file COPYING. 7 * 8 */ --- 459 unchanged lines hidden (view full) --- 468 if (!id->iobase) { 469 dev_err(&pdev->dev, "cannot ioremap\n"); 470 ret = -ENODEV; 471 goto out2; 472 } 473 474 ret = platform_get_irq(pdev, 0); 475 if (ret < 0) | 1/* 2 * I2C bus driver for the SH7760 I2C Interfaces. 3 * 4 * (c) 2005-2008 MSC Vertriebsges.m.b.H, Manuel Lauss <mlau@msc-ge.com> 5 * 6 * licensed under the terms outlined in the file COPYING. 7 * 8 */ --- 459 unchanged lines hidden (view full) --- 468 if (!id->iobase) { 469 dev_err(&pdev->dev, "cannot ioremap\n"); 470 ret = -ENODEV; 471 goto out2; 472 } 473 474 ret = platform_get_irq(pdev, 0); 475 if (ret < 0) |
476 return ret; | 476 goto out3; |
477 id->irq = ret; 478 479 id->adap.nr = pdev->id; 480 id->adap.algo = &sh7760_i2c_algo; 481 id->adap.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; 482 id->adap.retries = 3; 483 id->adap.algo_data = id; 484 id->adap.dev.parent = &pdev->dev; --- 81 unchanged lines hidden --- | 477 id->irq = ret; 478 479 id->adap.nr = pdev->id; 480 id->adap.algo = &sh7760_i2c_algo; 481 id->adap.class = I2C_CLASS_HWMON | I2C_CLASS_SPD; 482 id->adap.retries = 3; 483 id->adap.algo_data = id; 484 id->adap.dev.parent = &pdev->dev; --- 81 unchanged lines hidden --- |