mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
I2C: mv64xxx: fix error handling for request_irq()
Propagate the error code from request_irq() rather than ignoring it entirely. Signed-off-by: Russell King <[email protected]> Acked-by: Mark A. Greer <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
2c91110304
commit
0c195afb87
1 changed files with 5 additions and 5 deletions
|
|
@ -630,12 +630,12 @@ mv64xxx_i2c_probe(struct platform_device *pd)
|
|||
|
||||
mv64xxx_i2c_hw_init(drv_data);
|
||||
|
||||
if (request_irq(drv_data->irq, mv64xxx_i2c_intr, 0,
|
||||
MV64XXX_I2C_CTLR_NAME, drv_data)) {
|
||||
rc = request_irq(drv_data->irq, mv64xxx_i2c_intr, 0,
|
||||
MV64XXX_I2C_CTLR_NAME, drv_data);
|
||||
if (rc) {
|
||||
dev_err(&drv_data->adapter.dev,
|
||||
"mv64xxx: Can't register intr handler irq: %d\n",
|
||||
drv_data->irq);
|
||||
rc = -EINVAL;
|
||||
"mv64xxx: Can't register intr handler irq%d: %d\n",
|
||||
drv_data->irq, rc);
|
||||
goto exit_clk;
|
||||
} else if ((rc = i2c_add_numbered_adapter(&drv_data->adapter)) != 0) {
|
||||
dev_err(&drv_data->adapter.dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue