kernel: kmod-gpio-mcp23s08 depends on i2c-core

But only if it is selected, so make it a conditionl dependency.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37420 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Jonas Gorski 2013-07-18 20:40:15 +00:00
parent a061e11e2e
commit 7565b0335d
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ $(eval $(call KernelPackage,gpio-dev))
define KernelPackage/gpio-mcp23s08 define KernelPackage/gpio-mcp23s08
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Microchip MCP23xxx I/O expander TITLE:=Microchip MCP23xxx I/O expander
DEPENDS:=@GPIO_SUPPORT DEPENDS:=@GPIO_SUPPORT +PACKAGE_kmod-i2c-core:kmod-i2c-core
KCONFIG:=CONFIG_GPIO_MCP23S08 KCONFIG:=CONFIG_GPIO_MCP23S08
FILES:=$(LINUX_DIR)/drivers/gpio/gpio-mcp23s08.ko FILES:=$(LINUX_DIR)/drivers/gpio/gpio-mcp23s08.ko
AUTOLOAD:=$(call AutoLoad,40,gpio-mcp23s08) AUTOLOAD:=$(call AutoLoad,40,gpio-mcp23s08)