mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2c-mv64xxxx: allow more than one driver instance
The driver currently checks the platform device id and rejects platform device id different from 0. This prevents the registration of a second i2c controller on systems where a second one might be available (such as Kirkwood 88F6282). CC: Andrew Lunn <[email protected]> Signed-off-by: Nicolas Schichan <[email protected]> Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
f518b482c8
commit
d61a909515
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ mv64xxx_i2c_probe(struct platform_device *pd)
|
|||
struct mv64xxx_i2c_pdata *pdata = pd->dev.platform_data;
|
||||
int rc;
|
||||
|
||||
if ((pd->id != 0) || !pdata)
|
||||
if (!pdata)
|
||||
return -ENODEV;
|
||||
|
||||
drv_data = kzalloc(sizeof(struct mv64xxx_i2c_data), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue