mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04: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 <[email protected]> [chipidea] Signed-off-by: Michal Marek <[email protected]>
This commit is contained in:
parent
0046a46a8f
commit
cf4f21938e
5 changed files with 11 additions and 7 deletions
|
|
@ -485,7 +485,7 @@ static inline int logfs_get_sb_bdev(struct logfs_super *s,
|
|||
#endif
|
||||
|
||||
/* dev_mtd.c */
|
||||
#ifdef CONFIG_MTD
|
||||
#if IS_ENABLED(CONFIG_MTD)
|
||||
int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr);
|
||||
#else
|
||||
static inline int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue