diff options
author | Helge Deller <deller@gmx.de> | 2023-08-21 17:29:18 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-08-22 10:24:47 +0200 |
commit | 8f01caf0c5c14b2dc086c766cf5321fbcdc40bd1 (patch) | |
tree | 6371d5b0841e6a8d559f9356ddcc175cdae512c8 /drivers/parisc/lba_pci.c | |
parent | 98a9d5f07edfe60a6e6f9ffac1779dca39f415d5 (diff) | |
download | linux-stable-8f01caf0c5c14b2dc086c766cf5321fbcdc40bd1.tar.gz linux-stable-8f01caf0c5c14b2dc086c766cf5321fbcdc40bd1.tar.bz2 linux-stable-8f01caf0c5c14b2dc086c766cf5321fbcdc40bd1.zip |
parisc: Avoid ioremap() for same addresss in iosapic_register()
The LBA has already called ioremap() to get it's virtual address,
which can be used for the IOSAPIC as well.
Avoid calling ioremap() again and just reuse the correct
iomem address for the IOSAPIC.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc/lba_pci.c')
-rw-r--r-- | drivers/parisc/lba_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index 702bfd64e6e1..9e22b117fb3a 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c @@ -1535,7 +1535,8 @@ lba_driver_probe(struct parisc_device *dev) } /* Tell I/O SAPIC driver we have a IRQ handler/region. */ - tmp_obj = iosapic_register(dev->hpa.start + LBA_IOSAPIC_BASE); + tmp_obj = iosapic_register(dev->hpa.start + LBA_IOSAPIC_BASE, + addr + LBA_IOSAPIC_BASE); /* NOTE: PCI devices (e.g. 103c:1005 graphics card) which don't ** have an IRT entry will get NULL back from iosapic code. |