]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: kirin: Tidy up _probe() related function with dev_err_probe()
authorZhang Zekun <zhangzekun11@huawei.com>
Sat, 31 Aug 2024 04:04:09 +0000 (12:04 +0800)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Thu, 6 Mar 2025 09:30:15 +0000 (09:30 +0000)
commitd5233478548309cab6bb327ddaa3c26038bdd785
treee300071eaad2cdf6294d6af25ab73aaa9977f7b9
parent9a0f3c50bd51bd60cedbfeb37b55368fcb70b1b6
PCI: kirin: Tidy up _probe() related function with dev_err_probe()

The combination of dev_err() and the returned error code could be
replaced by dev_err_probe() in driver's probe function.

Thus, convert the code to use dev_err_probe() to make code simpler.

Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240831040413.126417-3-zhangzekun11@huawei.com
[kwilczynski: commit log, return -ETIMEDOUT from hi3660_pcie_phy_start()
rather than -EINVAL for when the PIPE clock fails to become stable,
drop redundant dev->of_node NULL check]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/dwc/pcie-kirin.c