Skip to content

Commit 07ea7ec

Browse files
Ard BiesheuvelIngo Molnar
authored andcommitted
efifb: Use builtin_platform_driver and drop unused includes
Since efifb can only be built directly into the kernel, drop the module specific includes and definitions. Drop some other includes we don't need as well. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Acked-by: Peter Jones <pjones@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: David Herrmann <dh.herrmann@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1461614832-17633-20-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 21289ec commit 07ea7ec

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/video/fbdev/efifb.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
*
77
*/
88

9-
#include <linux/module.h>
109
#include <linux/kernel.h>
1110
#include <linux/efi.h>
1211
#include <linux/errno.h>
1312
#include <linux/fb.h>
1413
#include <linux/platform_device.h>
1514
#include <linux/screen_info.h>
16-
#include <linux/dmi.h>
17-
#include <linux/pci.h>
1815
#include <video/vga.h>
1916
#include <asm/efi.h>
2017

@@ -331,5 +328,4 @@ static struct platform_driver efifb_driver = {
331328
.remove = efifb_remove,
332329
};
333330

334-
module_platform_driver(efifb_driver);
335-
MODULE_LICENSE("GPL");
331+
builtin_platform_driver(efifb_driver);

0 commit comments

Comments
 (0)