]> err.no Git - linux-2.6/commit
[NET]: Fix WAN routers kconfig dependency.
authorRandy Dunlap <randy.dunlap@oracle.com>
Sat, 9 Dec 2006 21:58:42 +0000 (13:58 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 11 Dec 2006 22:34:34 +0000 (14:34 -0800)
commited407717852895e04f9e088e09a4f27bb56712b7
tree9d20ed5c9fa9119b3e856b4519a40cc6f9d7e3b5
parent686106ff5ed2cbcd3fc12a22e53c880cf0943eff
[NET]: Fix WAN routers kconfig dependency.

Currently WAN router drivers can be built in-kernel while the
register/unregister_wan_device interfaces are built as modules.
This causes:

drivers/built-in.o: In function `cycx_init':
cycx_main.c:(.init.text+0x5c4b): undefined reference to `register_wan_device'
drivers/built-in.o: In function `cycx_exit':
cycx_main.c:(.exit.text+0x560): undefined reference to `unregister_wan_device'
make: *** [.tmp_vmlinux1] Error 1

The problem is caused by tristate -> bool conversion (y or m => y),
so convert WAN_ROUTER_DRIVERS to a tristate so that the correct
dependency is preserved.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/Kconfig