summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pcie-mediatek.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2020-04-29 04:50:27 +0300
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-05-22 17:05:23 +0300
commitc8a119779f5609de8dcd98630f71cc7f1b2e4e8c (patch)
tree0ecaac5ea556f16ad7e97ad065a3f613c9205bf5 /drivers/pci/controller/pcie-mediatek.c
parent558c1225a2f33a46ee31fba6f2bc4c4838d58752 (diff)
downloadlinux-c8a119779f5609de8dcd98630f71cc7f1b2e4e8c.tar.xz
PCI: dwc: pci-dra7xx: Use devm_platform_ioremap_resource_byname()
platform_get_resource() may fail and return NULL, so we had better check its return value to avoid a NULL pointer dereference a bit later in the code. Fix it to use devm_platform_ioremap_resource_byname() instead of calling platform_get_resource_byname() and devm_ioremap(). Link: https://lore.kernel.org/r/20200429015027.134485-1-weiyongjun1@huawei.com Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> [lorenzo.pieralisi@arm.com: commit log] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/controller/pcie-mediatek.c')
0 files changed, 0 insertions, 0 deletions