Skip to content

Commit

Permalink
i2c-mv64xxxx: allow more than one driver instance
Browse files Browse the repository at this point in the history
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 <andrew@lunn.ch>
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
  • Loading branch information
Florian Fainelli authored and Wolfram Sang committed Jul 12, 2012
1 parent f518b48 commit d61a909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-mv64xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d61a909

Please sign in to comment.