PCI: Move pci_[get|set]_resource_alignment_param() into their callers
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 22 Aug 2019 16:10:12 +0000 (10:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Sep 2019 21:47:22 +0000 (16:47 -0500)
commit273b177cac4b649c3c6d448e85bbc64cebfe7a0a
treeedd8e5a691e1cfc1d82530db7e759c587175c2f4
parent70aaf61a9b8b86eb08da96344efd1c0f0925ee6e
PCI: Move pci_[get|set]_resource_alignment_param() into their callers

Both the functions pci_get_resource_alignment_param() and
pci_set_resource_alignment_param() are now only called in one place:
resource_alignment_show() and resource_alignment_store() respectively.

There is no value in this extra set of functions so move both into their
callers respectively.

[bhelgaas: fold in "GFP_KERNEL while atomic" fix from Christoph Hellwig
<hch@infradead.org>
https://lore.kernel.org/r/20190902075006.GB754@infradead.org]
Link: https://lore.kernel.org/r/20190822161013.5481-3-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c