Skip to content

Commit e2f3733

Browse files
masahir0ygregkh
authored andcommitted
drivers/component: remove modular code
drivers/base/Makefile always adds component.o to obj-y, like this: obj-y := component.o core.o bus.o dd.o syscore.o \ Hence it is never compiled as a module. Remove useless modular code. Signed-off-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent adc92dd commit e2f3733

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/base/component.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <linux/device.h>
1212
#include <linux/kref.h>
1313
#include <linux/list.h>
14-
#include <linux/module.h>
1514
#include <linux/mutex.h>
1615
#include <linux/slab.h>
1716
#include <linux/debugfs.h>
@@ -775,5 +774,3 @@ void component_del(struct device *dev, const struct component_ops *ops)
775774
kfree(component);
776775
}
777776
EXPORT_SYMBOL_GPL(component_del);
778-
779-
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)