linux/drivers/video
Jean Delvare 6473d160b4 PCI: Cleanup the includes of <linux/pci.h>
I noticed that many source files include <linux/pci.h> while they do
not appear to need it. Here is an attempt to clean it all up.

In order to find all possibly affected files, I searched for all
files including <linux/pci.h> but without any other occurence of "pci"
or "PCI". I removed the include statement from all of these, then I
compiled an allmodconfig kernel on both i386 and x86_64 and fixed the
false positives manually.

My tests covered 66% of the affected files, so there could be false
positives remaining. Untested files are:

arch/alpha/kernel/err_common.c
arch/alpha/kernel/err_ev6.c
arch/alpha/kernel/err_ev7.c
arch/ia64/sn/kernel/huberror.c
arch/ia64/sn/kernel/xpnet.c
arch/m68knommu/kernel/dma.c
arch/mips/lib/iomap.c
arch/powerpc/platforms/pseries/ras.c
arch/ppc/8260_io/enet.c
arch/ppc/8260_io/fcc_enet.c
arch/ppc/8xx_io/enet.c
arch/ppc/syslib/ppc4xx_sgdma.c
arch/sh64/mach-cayman/iomap.c
arch/xtensa/kernel/xtensa_ksyms.c
arch/xtensa/platform-iss/setup.c
drivers/i2c/busses/i2c-at91.c
drivers/i2c/busses/i2c-mpc.c
drivers/media/video/saa711x.c
drivers/misc/hdpuftrs/hdpu_cpustate.c
drivers/misc/hdpuftrs/hdpu_nexus.c
drivers/net/au1000_eth.c
drivers/net/fec_8xx/fec_main.c
drivers/net/fec_8xx/fec_mii.c
drivers/net/fs_enet/fs_enet-main.c
drivers/net/fs_enet/mac-fcc.c
drivers/net/fs_enet/mac-fec.c
drivers/net/fs_enet/mac-scc.c
drivers/net/fs_enet/mii-bitbang.c
drivers/net/fs_enet/mii-fec.c
drivers/net/ibm_emac/ibm_emac_core.c
drivers/net/lasi_82596.c
drivers/parisc/hppb.c
drivers/sbus/sbus.c
drivers/video/g364fb.c
drivers/video/platinumfb.c
drivers/video/stifb.c
drivers/video/valkyriefb.c
include/asm-arm/arch-ixp4xx/dma.h
sound/oss/au1550_ac97.c

I would welcome test reports for these files. I am fine with removing
the untested files from the patch if the general opinion is that these
changes aren't safe. The tested part would still be nice to have.

Note that this patch depends on another header fixup patch I submitted
to LKML yesterday:
  [PATCH] scatterlist.h needs types.h
  http://lkml.org/lkml/2007/3/01/141

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-05-02 19:02:35 -07:00
..
aty PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
backlight [PATCH] misc NULL noise 2007-03-14 15:27:49 -07:00
console backlight/fbcon: Add FB_EVENT_CONBLANK 2007-02-20 08:38:45 +00:00
geode [PATCH] Recognize video=gx1fb:... option 2007-02-12 09:48:42 -08:00
i810 [PATCH] i810fb: fix i810_check_params section mismatch 2007-02-20 17:10:16 -08:00
intelfb [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2007-02-14 08:09:54 -08:00
kyro [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
logo Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
matrox i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
mbx [PATCH] mark struct file_operations const 6 2007-02-12 09:48:45 -08:00
nvidia Revert "[POWERPC] Rename get_property to of_get_property: drivers" 2007-04-26 22:24:31 +10:00
pnx4008 [PATCH] pnx4008:fix NULL dereference in rgbfb 2006-11-16 11:43:37 -08:00
riva Revert "[POWERPC] Rename get_property to of_get_property: drivers" 2007-04-26 22:24:31 +10:00
savage [PATCH] savagefb: Fix compile error if debugging is enabled 2007-03-16 19:25:04 -07:00
sis [PATCH] drivers/video/sis: Convert to generic boolean 2007-02-12 09:48:42 -08:00
68328fb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
acornfb.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
acornfb.h
amba-clcd.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
amifb.c [PATCH] fbdev: remove references to non-existent fbmon_valid_timings() 2006-12-13 09:05:55 -08:00
arcfb.c [PATCH] struct path: convert video 2006-12-08 08:28:50 -08:00
asiliantfb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
atafb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
au1100fb.c [PATCH] Video: fb, kzalloc changes 2007-02-12 09:48:43 -08:00
au1100fb.h [PATCH] au11oofb: fix to remove flickering 2006-12-08 08:29:06 -08:00
au1200fb.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
au1200fb.h [PATCH] au1200fb: Alchemy Au1200 framebuffer driver 2006-03-27 08:44:55 -08:00
bt431.h
bt455.h
bw2.c [BW2]: Fix section mismatch warnings. 2007-03-09 23:11:05 -08:00
c2p.c
c2p.h
cfbcopyarea.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cfbfillrect.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cfbimgblt.c [PATCH] various fbdev files: mark structs and array read-only 2006-12-08 08:29:05 -08:00
cg3.c [SPARC/64] constify of_get_property return: drivers 2007-04-26 01:54:27 -07:00
cg6.c [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
cg14.c [CG14]: Fix section mismatch warnings. 2007-03-09 23:10:56 -08:00
chipsfb.c backlight: Separate backlight properties from backlight ops pointers 2007-02-20 09:26:53 +00:00
cirrusfb.c [PATCH] ioremap balanced with iounmap for drivers/video/cirrusfb 2006-12-08 08:29:05 -08:00
clps711xfb.c
controlfb.c [POWERPC] Remove old interface find_devices 2007-04-24 22:09:02 +10:00
controlfb.h
cyber2000fb.c [PATCH] cyber2010 framebuffer on ARM Netwinder fix 2007-02-12 09:48:42 -08:00
cyber2000fb.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cyblafb.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
dnfb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
edid.h
epson1355fb.c [PATCH] struct path: convert video 2006-12-08 08:28:50 -08:00
fb_ddc.c Fix generic fb_ddc i2c edid probe msg 2006-11-16 22:18:28 -08:00
fb_notify.c [PATCH] fbdev: statically link the framebuffer notification functions 2006-07-31 13:28:44 -07:00
fbcmap.c [PATCH] fbcmap.c: mark structs const or __read_mostly 2006-12-08 08:29:05 -08:00
fbcvt.c [PATCH] various fbdev files: mark structs and array read-only 2006-12-08 08:29:05 -08:00
fbmem.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
fbmon.c [PATCH] various fbdev files: mark structs and array read-only 2006-12-08 08:29:05 -08:00
fbsysfs.c backlight: Rework backlight/fb interaction simplifying, lots 2007-02-20 08:38:46 +00:00
ffb.c [VIDEO] ffb: Fix two DAC handling bugs. 2007-03-26 23:18:09 -07:00
fm2fb.c [PATCH] ioremap balanced with iounmap for drivers/video/fm2fb 2006-12-08 08:29:04 -08:00
g364fb.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
gbefb.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
gxt4500.c [PATCH] gxt4500: Fix colormap and PLL setting, support GXT6000P 2006-12-22 08:55:50 -08:00
hgafb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
hitfb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
hpfb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
igafb.c [IGAFB]: Use pci_device_to_OF_node() on sparc. 2007-04-26 01:55:03 -07:00
imacfb.c [PATCH] x86: Fix dmi detection of MacBookPro and iMac 2006-08-27 11:01:29 -07:00
imsttfb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
imxfb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
imxfb.h
Kconfig Merge branch 'linux-2.6' into for-2.6.22 2007-04-30 12:38:01 +10:00
leo.c [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
macfb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
macmodes.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
macmodes.h [PATCH] macmodes: Fix section warning 2006-06-26 09:58:31 -07:00
Makefile [PATCH] fb: SM501 framebuffer driver 2007-02-20 17:10:16 -08:00
maxinefb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
modedb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
neofb.c [PATCH] Video: fb, add true ref_count atomicity 2007-02-12 09:48:42 -08:00
offb.c Revert "[POWERPC] Rename get_property to of_get_property: drivers" 2007-04-26 22:24:31 +10:00
output.c output: Add display output class support 2006-12-20 01:46:41 -05:00
p9100.c [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
platinumfb.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
platinumfb.h [PATCH] powerpc: Fix platinumfb for some modes 2006-01-09 14:53:51 +11:00
pm2fb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
pm3fb.c [PATCH] pm3fb: kill pci_find_device usage 2007-02-12 09:48:42 -08:00
pmag-aa-fb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
pmag-ba-fb.c [TC] mips: pmag-ba-fb: Convert to the driver model 2007-02-09 16:23:17 +00:00
pmagb-b-fb.c [TC] pmagb-b-fb: Convert to the driver model 2007-02-09 16:23:18 +00:00
ps3fb.c [PATCH] ps3: Virtual Frame Buffer Driver 2007-02-12 09:48:44 -08:00
pvr2fb.c [PATCH] ioremap balanced with iounmap for drivers/video/pvr2fb 2006-12-08 08:29:04 -08:00
pxafb.c [ARM] 4034/1: pxafb: Fix compile errors 2006-12-17 23:37:45 +00:00
pxafb.h [ARM] 3848/1: pxafb: Add option of fixing video modes and spitz QVGA mode support 2006-10-02 13:33:37 +01:00
q40fb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
s1d13xxxfb.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
s3c2410fb.c [PATCH] s3c2410fb: fix un-initialised dev field 2007-02-16 08:14:01 -08:00
s3c2410fb.h fix file specification in comments 2006-10-03 23:01:26 +02:00
s3fb.c [PATCH] drivers/video/s3fb.c: fix a use-before-check 2007-03-22 19:39:05 -07:00
sa1100fb.c [ARM] 4035/1: fix collie compilation 2006-12-17 23:37:47 +00:00
sa1100fb.h [PATCH] Replace regular code with appropriate calls to container_of() 2007-02-11 11:18:06 -08:00
sbuslib.c [SPARC]: Respect vm_page_prot in io_remap_page_range(). 2006-03-22 01:15:13 -08:00
sbuslib.h [SPARC]: Fix sbusfb build. 2006-01-17 15:53:11 -08:00
sgivwfb.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
skeletonfb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
sm501fb.c [PATCH] fb: sm501fb off-by-1 sysfs store 2007-03-05 07:57:51 -08:00
sstfb.c [PATCH] sstfb: fix pixclock setting on Voodoo 1/2 cards 2007-03-16 19:25:04 -07:00
sticore.h [PARISC] Fix stifb with IOREMAP and a 64-bit kernel 2006-03-30 17:48:47 +00:00
stifb.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
svgalib.c [PATCH] fbdev driver for S3 Trio/Virge 2007-02-12 09:48:41 -08:00
tcx.c [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
tdfxfb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
tgafb.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
tridentfb.c [PATCH] ioremap balanced with iounmap for drivers/video/tridentfb 2006-12-08 08:29:04 -08:00
tx3912fb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
valkyriefb.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
valkyriefb.h
vesafb.c [PATCH] annotate some variables in vesafb driver as __read_mostly 2006-12-08 08:29:06 -08:00
vfb.c [PATCH] vt: Remove VT-specific declarations and definitions from tty.h 2006-07-10 13:24:16 -07:00
vga16fb.c [PATCH] Video: fb, add true ref_count atomicity 2007-02-12 09:48:42 -08:00
vgastate.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
w100fb.c [PATCH] w100fb: Add acceleration support to ATI Imageon 2006-03-31 12:19:00 -08:00
w100fb.h [PATCH] w100fb: Add acceleration support to ATI Imageon 2006-03-31 12:19:00 -08:00