On 11/7/2013, 8:13 PM, Paul Butler wrote:
From: SangeethaRao <sangeetha....@lsi.com>

Obviously the masking and shifting isn't necessary. But is there a
description of the issues that the masking and shifting was causing ?
It'll save some poor soul that might not have the latest code some
time, if it is logged in the commit.

Bruce


Signed-off-by: SangeethaRao <sangeetha....@lsi.com>
---
  arch/arm/mach-axxia/pci.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-axxia/pci.c b/arch/arm/mach-axxia/pci.c
index b0ddab6..2600892 100644
--- a/arch/arm/mach-axxia/pci.c
+++ b/arch/arm/mach-axxia/pci.c
@@ -209,8 +209,8 @@ axxia_pciex_get_config_base(struct axxia_pciex_port *port,
                return port->regs;

        relbus = bus->number - (port->root_bus_nr + 1);
-       dev    = (PCI_SLOT(devfn) & 0xf8) >> 3;
-       fn     = (PCI_FUNC(devfn) & 0x7);
+       dev    = PCI_SLOT(devfn);
+       fn     = PCI_FUNC(devfn);

        if (dev > 31)
                return NULL;


_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to