framebuffer: don't link fb_devio into kernel image unconditionally
authorHarald Geyer <harald@ccbib.org>
Tue, 28 Apr 2015 11:17:49 +0000 (13:17 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 7 May 2015 10:59:45 +0000 (13:59 +0300)
CONFIG_FB_DEFERRED_IO is defined as bool while CONFIG_FB is defined as
tristate. Currently fb_defio.o is linked into the kernel image even if
CONFIG_FB=m.

I fix this by updating the Makefile to link fb_defio.o into fb.o and thus
go into one place with the other core framebuffer code.

Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/core/Makefile
drivers/video/fbdev/core/fb_defio.c

index 67f28e20a89256c0b11a23d9a81bf8defa98c1e5..23d86a8b7d7b3d0264da4a6c7fdb05cea28768fa 100644 (file)
@@ -3,6 +3,7 @@ obj-$(CONFIG_FB_CMDLINE)          += fb_cmdline.o
 obj-$(CONFIG_FB)                  += fb.o
 fb-y                              := fbmem.o fbmon.o fbcmap.o fbsysfs.o \
                                      modedb.o fbcvt.o
+fb-$(CONFIG_FB_DEFERRED_IO)       += fb_defio.o
 fb-objs                           := $(fb-y)
 
 obj-$(CONFIG_FB_CFB_FILLRECT)  += cfbfillrect.o
@@ -14,4 +15,3 @@ obj-$(CONFIG_FB_SYS_IMAGEBLIT) += sysimgblt.o
 obj-$(CONFIG_FB_SYS_FOPS)      += fb_sys_fops.o
 obj-$(CONFIG_FB_SVGALIB)       += svgalib.o
 obj-$(CONFIG_FB_DDC)           += fb_ddc.o
-obj-$(CONFIG_FB_DEFERRED_IO)   += fb_defio.o
index d6cab1fd9a4795da2fe2348c2882bc3e04a6cf30..3fc63c208d08ba9fa801570d830220106aa24f21 100644 (file)
@@ -242,5 +242,3 @@ void fb_deferred_io_cleanup(struct fb_info *info)
        mutex_destroy(&fbdefio->lock);
 }
 EXPORT_SYMBOL_GPL(fb_deferred_io_cleanup);
-
-MODULE_LICENSE("GPL");