Skip to content

Commit

Permalink
pseries/iommu: Restore_default_window does not use liobn parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Aravamudan authored and Benjamin Herrenschmidt committed Feb 8, 2013
1 parent 174ea47 commit a1dabad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/pseries/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1100,7 +1100,7 @@ static u64 enable_ddw(struct pci_dev *dev, struct device_node *pdn)

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);
Expand Down

0 comments on commit a1dabad

Please sign in to comment.