From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruno =?UTF-8?B?UHLDqW1vbnQ=?= Subject: [PATCH 2/2 v2] vgaarb: Drop obsolete #ifndef Date: Sun, 24 Aug 2014 23:13:15 +0200 Message-ID: <20140824231315.648a4cf6@neptune.home> References: <20140514224339.7f8be3a9@neptune.home> <20140625005501.7ff7e982@neptune.home> <20140705171503.GC6247@google.com> <20140810112654.1bf684d6@neptune.home> <20140810183411.19370721@neptune.home> <20140816192135.34260115@neptune.home> <20140820075508.74f5b622@pluto> <20140820091152.76cd4e1a@pluto> <20140821233435.19a9cffa@neptune.home> <20140822082324.12cb6e93@pluto> <20140823130624.06ecc057@neptune.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20140823130624.06ecc057@neptune.home> Sender: linux-pci-owner@vger.kernel.org To: Andreas Noever Cc: dri-devel@lists.freedesktop.org, Matthew Garrett , Linux PCI , Greg Kroah-Hartman , Bjorn Helgaas List-Id: dri-devel@lists.freedesktop.org With commit 20cde694027e boot video device detection was moved from efifb to x86 and ia64 pci/fixup.c. Remove the left-over #ifndef check that will allways match since the corresponding arch-specific define is gone with above patch. Signed-off-by: Bruno Pr=C3=A9mont CC: Matthew Garrett --- No fundamental change from previous iteration, just reversed the patch ordering and dropped the stable@ tag as this is just clean-up. drivers/gpu/vga/vgaarb.c | 8 -------- include/linux/vgaarb.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c index cffdff9..fb28314 100644 --- a/drivers/gpu/vga/vgaarb.c +++ b/drivers/gpu/vga/vgaarb.c @@ -113,10 +113,8 @@ both: return 1; } =20 -#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE /* this is only used a cookie - it should not be dereferenced */ static struct pci_dev *vga_default; -#endif =20 static void vga_arb_device_card_gone(struct pci_dev *pdev); =20 @@ -132,7 +130,6 @@ static struct vga_device *vgadev_find(struct pci_de= v *pdev) } =20 /* Returns the default VGA device (vgacon's babe) */ -#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE struct pci_dev *vga_default_device(void) { return vga_default; @@ -148,7 +145,6 @@ void vga_set_default_device(struct pci_dev *pdev) pci_dev_put(vga_default); vga_default =3D pci_dev_get(pdev); } -#endif =20 static inline void vga_irq_set_state(struct vga_device *vgadev, bool s= tate) { @@ -584,14 +580,12 @@ static bool vga_arbiter_add_pci_device(struct pci= _dev *pdev) /* Deal with VGA default device. Use first enabled one * by default if arch doesn't have it's own hook */ -#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE if (vga_default =3D=3D NULL && ((vgadev->owns & VGA_RSRC_LEGACY_MASK) =3D=3D VGA_RSRC_LEGACY_MAS= K)) { pr_info("vgaarb: setting as boot device: PCI:%s\n", pci_name(pdev)); vga_set_default_device(pdev); } -#endif =20 vga_arbiter_check_bridge_sharing(vgadev); =20 @@ -625,10 +619,8 @@ static bool vga_arbiter_del_pci_device(struct pci_= dev *pdev) goto bail; } =20 -#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE if (vga_default =3D=3D pdev) vga_set_default_device(NULL); -#endif =20 if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) vga_decode_count--; diff --git a/include/linux/vgaarb.h b/include/linux/vgaarb.h index 2c02f3a..c37bd4d 100644 --- a/include/linux/vgaarb.h +++ b/include/linux/vgaarb.h @@ -182,7 +182,6 @@ extern void vga_put(struct pci_dev *pdev, unsigned = int rsrc); * vga_get()... */ =20 -#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE #ifdef CONFIG_VGA_ARB extern struct pci_dev *vga_default_device(void); extern void vga_set_default_device(struct pci_dev *pdev); @@ -190,7 +189,6 @@ extern void vga_set_default_device(struct pci_dev *= pdev); static inline struct pci_dev *vga_default_device(void) { return NULL; = }; static inline void vga_set_default_device(struct pci_dev *pdev) { }; #endif -#endif =20 /** * vga_conflicts --=20 1.8.5.5