ramips: Power down phy on disabled switch ports
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.3 / 107-MIPS-ath79-remove-superfluous-alignment-checks-from-.patch
1 From e9889bee75d03338daf7ed422661ae28f3aa7063 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 14 Mar 2012 10:36:03 +0100
4 Subject: [PATCH 12/47] MIPS: ath79: remove superfluous alignment checks from pci-ar724x.c
5
6 The alignment of the 'where' parameters are checked
7 in the core PCI code already.
8
9 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
10 Cc: linux-mips@linux-mips.org
11 Patchwork: https://patchwork.linux-mips.org/patch/3492/
12 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
13 ---
14 arch/mips/pci/pci-ar724x.c | 6 ------
15 1 files changed, 0 insertions(+), 6 deletions(-)
16
17 --- a/arch/mips/pci/pci-ar724x.c
18 +++ b/arch/mips/pci/pci-ar724x.c
19 @@ -28,9 +28,6 @@ static int ar724x_pci_read(struct pci_bu
20 if (devfn)
21 return PCIBIOS_DEVICE_NOT_FOUND;
22
23 - if (where & (size - 1))
24 - return PCIBIOS_BAD_REGISTER_NUMBER;
25 -
26 base = ar724x_pci_devcfg_base;
27
28 spin_lock_irqsave(&ar724x_pci_lock, flags);
29 @@ -73,9 +70,6 @@ static int ar724x_pci_write(struct pci_b
30 if (devfn)
31 return PCIBIOS_DEVICE_NOT_FOUND;
32
33 - if (where & (size - 1))
34 - return PCIBIOS_BAD_REGISTER_NUMBER;
35 -
36 base = ar724x_pci_devcfg_base;
37
38 spin_lock_irqsave(&ar724x_pci_lock, flags);