mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
kbuild: Allow to specify composite modules with modname-m
This allows to write drm-$(CONFIG_AGP) += drm_agpsupport.o without having to handle CONFIG_AGP=y vs. CONFIG_AGP=m. Only support this syntax for modules, since built-in code depending on something modular cannot work and init/Makefile actually relies on the current semantics. There are a few drivers which adapted to the current semantics out of necessity; these are fixed to also work when the respective subsystem is modular. Acked-by: Peter Chen <peter.chen@freescale.com> [chipidea] Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:
parent
0046a46a8f
commit
cf4f21938e
5 changed files with 11 additions and 7 deletions
|
@ -211,7 +211,7 @@ void ibmasmfs_unregister(void);
|
|||
void ibmasmfs_add_sp(struct service_processor *sp);
|
||||
|
||||
/* uart */
|
||||
#ifdef CONFIG_SERIAL_8250
|
||||
#if IS_ENABLED(CONFIG_SERIAL_8250)
|
||||
void ibmasm_register_uart(struct service_processor *sp);
|
||||
void ibmasm_unregister_uart(struct service_processor *sp);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue