]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI: allow quirks to be compiled out
authorThomas Petazzoni <thomas.petazzoni@enix.org>
Tue, 19 Aug 2008 08:28:24 +0000 (10:28 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 20 Oct 2008 17:53:40 +0000 (10:53 -0700)
commit3d137310245e4cdc3e8c8ba1bea2e145a87ae8e3
tree478a5864216e1ddca3df9a2d08bde0d8ea4523a5
parentb41d6cf38e27a940d998d989526a9748de1bf028
PCI: allow quirks to be compiled out

This patch adds the CONFIG_PCI_QUIRKS option which allows to remove all
the PCI quirks, which are not necessarily used on embedded systems when
PCI is working properly. As this is a size-reduction option, it depends
on CONFIG_EMBEDDED. It allows to save almost 12 kilobytes of kernel
code:

   text    data     bss     dec     hex filename
1287806  123596  212992 1624394  18c94a vmlinux.old
1275854  123596  212992 1612442  189a9a vmlinux
 -11952       0       0  -11952   -2EB0 +/-

This patch has originally been written by Zwane Mwaikambo
<zwane@arm.linux.org.uk> and is part of the Linux Tiny project.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/quirks.c
init/Kconfig