i2c: pasemi: remove hardcoded bus numbers on smbus
authorDarren Stevens <darren@stevens-zone.net>
Sun, 31 Dec 2017 20:53:55 +0000 (20:53 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Aug 2018 09:01:13 +0000 (11:01 +0200)
commit5c18d12ced225fa0ad5a03fb42bbb293815d1342
tree75f921efdbc3f6c525c5d8deeb2e0e9282b45727
parent15c566fcff9cc7b8fd64461d6ee6fd1bc665b444
i2c: pasemi: remove hardcoded bus numbers on smbus

The pasemi smbus controller uses PCI_FUNC(dev->devfn) to define which
number bus to attach to, however this fails when something else is
probed first, for example an ATI Radeon graphics card will claim 9 or
10 busses, including the ones the pasemi wants.
Patch the driver to call i2c_add_adapter rather than
i2c_add_numbered_adapter.

Signed-off-by: Darren Stevens <darren@stevens-zone.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pasemi.c