diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-gpio.c')
-rw-r--r-- | drivers/i2c/busses/i2c-gpio.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index c0330a41db03..e62d2d938628 100644 --- a/drivers/i2c/busses/i2c-gpio.c +++ b/drivers/i2c/busses/i2c-gpio.c | |||
@@ -190,12 +190,7 @@ static int __devinit i2c_gpio_probe(struct platform_device *pdev) | |||
190 | adap->dev.parent = &pdev->dev; | 190 | adap->dev.parent = &pdev->dev; |
191 | adap->dev.of_node = pdev->dev.of_node; | 191 | adap->dev.of_node = pdev->dev.of_node; |
192 | 192 | ||
193 | /* | 193 | adap->nr = pdev->id; |
194 | * If "dev->id" is negative we consider it as zero. | ||
195 | * The reason to do so is to avoid sysfs names that only make | ||
196 | * sense when there are multiple adapters. | ||
197 | */ | ||
198 | adap->nr = (pdev->id != -1) ? pdev->id : 0; | ||
199 | ret = i2c_bit_add_numbered_bus(adap); | 194 | ret = i2c_bit_add_numbered_bus(adap); |
200 | if (ret) | 195 | if (ret) |
201 | goto err_add_bus; | 196 | goto err_add_bus; |