i2c-mv64xxxx: allow more than one driver instance
authorFlorian Fainelli <ffainelli@freebox.fr>
Sun, 8 Jul 2012 15:53:05 +0000 (17:53 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Thu, 12 Jul 2012 13:50:51 +0000 (15:50 +0200)
commitd61a9095155e832287552a9e565b8756ee293c46
tree9c15aed4697d4ff505febe5f22b059fbcb08bd52
parentf518b482c89b3ff51804f09c14b1cedbef811b84
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 <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>
drivers/i2c/busses/i2c-mv64xxx.c