pseries/iommu: Restore_default_window does not use liobn parameter
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>
Mon, 28 Jan 2013 16:02:46 +0000 (16:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 8 Feb 2013 03:05:48 +0000 (14:05 +1100)
The parameter is unused, and complicates a following fix. Just remove
it.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/iommu.c

index b4bb9e14114916962b58ee149c30c73dfb8faf28..a8e99f9c3b41fa3462b431ac742f898aaac01f6f 100644 (file)
@@ -884,7 +884,7 @@ static int create_ddw(struct pci_dev *dev, const u32 *ddw_avail,
 }
 
 static void restore_default_window(struct pci_dev *dev,
-                               u32 ddw_restore_token, unsigned long liobn)
+                                       u32 ddw_restore_token)
 {
        struct eeh_dev *edev;
        u32 cfg_addr;
@@ -1100,7 +1100,7 @@ out_free_prop:
 
 out_restore_window:
        if (ddw_restore_token)
-               restore_default_window(dev, ddw_restore_token, liobn);
+               restore_default_window(dev, ddw_restore_token);
 
 out_unlock:
        mutex_unlock(&direct_window_init_mutex);