Skip to contentSkip to conversation

i2c: designware-pcidrv depends on PCI

PATCH RESEND In review Randy Dunlap 2 participants 2 messages Mar 28, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 i2c: designware-pcidrv depends on PCI

From: Randy Dunlap <[email protected]>

i2c-designware-pcidrv is a PCI driver and should depend on PCI. Fixes these build errors:

drivers/i2c/busses/i2c-designware-pcidrv.c:256: error: implicit declaration of function 'pci_request_region' drivers/i2c/busses/i2c-designware-pcidrv.c:338: error: implicit declaration of function 'pci_release_region'

---
 drivers/i2c/busses/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/Kconfig +1 -0
@@ -359,6 +359,7 @@ config I2C_DESIGNWARE_PLATFORM
 
 config I2C_DESIGNWARE_PCI
 	tristate "Synopsys DesignWare PCI"
+	depends on PCI
 	help
 	  If you say yes to this option, support will be included for the
 	  Synopsys DesignWare I2C adapter. Only master mode is supported.

--

Acked-by on v1 1/1
#1 lore raw

Hi Randy,

Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

i2c-designware-pcidrv is a PCI driver and should depend on PCI. Fixes these build errors:

drivers/i2c/busses/i2c-designware-pcidrv.c:256: error: implicit declaration of function 'pci_request_region' drivers/i2c/busses/i2c-designware-pcidrv.c:338: error: implicit declaration of function 'pci_release_region'

Well, I haven't seen these PCI support patches until now, but this seems to be OK, so, FWIW:

Thanks,
baruch

Quoted 17 lines
---
 drivers/i2c/busses/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/Kconfig +1 -1
@@ -359,6 +359,7 @@ config I2C_DESIGNWARE_PLATFORM
 
 config I2C_DESIGNWARE_PCI
 	tristate "Synopsys DesignWare PCI"
+	depends on PCI
 	help
 	  If you say yes to this option, support will be included for the
 	  Synopsys DesignWare I2C adapter. Only master mode is supported.
--
Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -