From: Adrian Bunk <bunk@stusta.de>
To: adaplas@pol.net
Cc: linux-fbdev-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/video/: remove duplicate #include's
Date: Sat, 15 Apr 2006 14:35:27 +0200 [thread overview]
Message-ID: <20060415123527.GG15022@stusta.de> (raw)
This patch removes unneeded duplicate #include's of the same header
file.
In the case of fbmon.c linux/pci.h is now #include'd unconditional, but
this should be safe.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/video/fbmem.c | 2 --
drivers/video/fbmon.c | 3 +--
drivers/video/tgafb.c | 1 -
3 files changed, 1 insertion(+), 5 deletions(-)
--- linux-2.6.17-rc1-mm2-full/drivers/video/fbmem.c.old 2006-04-15 14:07:45.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/drivers/video/fbmem.c 2006-04-15 14:08:09.000000000 +0200
@@ -34,7 +34,6 @@
#endif
#include <linux/devfs_fs_kernel.h>
#include <linux/err.h>
-#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/efi.h>
@@ -162,7 +161,6 @@
}
#ifdef CONFIG_LOGO
-#include <linux/linux_logo.h>
static inline unsigned safe_shift(unsigned d, int n)
{
--- linux-2.6.17-rc1-mm2-full/drivers/video/fbmon.c.old 2006-04-15 14:08:24.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/drivers/video/fbmon.c 2006-04-15 14:09:17.000000000 +0200
@@ -29,9 +29,9 @@
#include <linux/tty.h>
#include <linux/fb.h>
#include <linux/module.h>
+#include <linux/pci.h>
#include <video/edid.h>
#ifdef CONFIG_PPC_OF
-#include <linux/pci.h>
#include <asm/prom.h>
#include <asm/pci-bridge.h>
#endif
@@ -1282,7 +1282,6 @@
}
#if defined(CONFIG_FB_FIRMWARE_EDID) && defined(__i386__)
-#include <linux/pci.h>
/*
* We need to ensure that the EDID block is only returned for
--- linux-2.6.17-rc1-mm2-full/drivers/video/tgafb.c.old 2006-04-15 14:12:38.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/drivers/video/tgafb.c 2006-04-15 14:12:47.000000000 +0200
@@ -26,7 +26,6 @@
#include <linux/selection.h>
#include <asm/io.h>
#include <video/tgafb.h>
-#include <linux/selection.h>
/*
* Local functions.
reply other threads:[~2006-04-15 12:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060415123527.GG15022@stusta.de \
--to=bunk@stusta.de \
--cc=adaplas@pol.net \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.