PCI: mediatek: Use bus->sysdata to get host private data
authorHonghui Zhang <honghui.zhang@mediatek.com>
Mon, 14 Aug 2017 13:04:27 +0000 (21:04 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Aug 2017 13:23:58 +0000 (08:23 -0500)
commitdb271747a04da5190b81ad120ee48c88d652b0e7
tree793edca683d05da7de70b01bb8e4c87b8e30fc14
parentc2e0ba9caf6ca81f8800ed2ebcf1bfdfd70ea81b
PCI: mediatek: Use bus->sysdata to get host private data

75983c6d1f38 ("PCI: mediatek: Add controller support for MT2712 and
MT7622") has put the mtk_pcie * into bus->sysdata.  Take advantage of that
to get the private data and simplify the code.

Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Ryder Lee <ryder.lee@mediatek.com>
drivers/pci/host/pcie-mediatek.c