]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
extcon: link devres into core module
authorArnd Bergmann <arnd@arndb.de>
Wed, 29 Jun 2016 14:38:30 +0000 (16:38 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 30 Jun 2016 13:18:40 +0000 (22:18 +0900)
commitaf61f96109b73fefbe0589c320d2219567f4f660
tree57d263dec1f8bd89134940777eb1e6860ac5a8db
parentbc92126012c8c84988eebbbf9c8a246949b07462
extcon: link devres into core module

Splitting the resource-managed functions into a separate module
means that the extcon core now fails to build because the internal
"extcon_dev_allocate" symbol is not exported:

ERROR: extcon_dev_allocate [drivers/extcon/devres.ko] undefined!

My guess is that the intention was not to have two separate
modules (which could be fixed by adding an export, plus the
normal MODULE_AUTHOR/MODULE_LICENSE/... fields), but have two
source files in the same module.

This fixes the Makefile accordingly, making the name of the
module extcon_core.ko, which is created from building both
extcon.c and devres.c.

Fixes: b225d00f3ad2 ("extcon: Split out the resource-managed functions from extcon core")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/Makefile