linux/drivers/phy
Jinjie Ruan 6ee8a9a772 phy: realtek: usb: Drop unnecessary error check for debugfs_create_dir()
Both debugfs_create_dir() and debugfs_create_file() return ERR_PTR
and never return NULL.

As Greg suggested, this patch removes the error checking for
debugfs_create_dir in phy-rtk-usb2.c and phy-rtk-usb3.c. This is because
the DebugFS kernel API is developed in a way that the caller can safely
ignore the errors that occur during the creation of DebugFS nodes. The
debugfs APIs have a IS_ERR() judge in start_creating() which can handle it
gracefully. So these checks are unnecessary.

Fixes: 134e6d25f6 ("phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY")
Fixes: adda6e82a7 ("phy: realtek: usb: Add driver for the Realtek SoC USB 3.0 PHY")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230901075231.1368947-1-ruanjinjie@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-09-21 16:14:22 +02:00
..
allwinner phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
amlogic phy: amlogic: meson-g12a-usb2: fix Wvoid-pointer-to-enum-cast warning 2023-08-22 19:28:10 +05:30
broadcom phy: broadcom: sr-usb: fix Wvoid-pointer-to-enum-cast warning 2023-08-11 09:25:14 +01:00
cadence phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
freescale phy: fsl-imx8mq-usb: add dev_err_probe if getting vbus failed 2023-08-22 19:28:11 +05:30
hisilicon phy-for-6.6 2023-09-03 10:38:02 -07:00
ingenic phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
intel phy-for-6.4 2023-05-03 11:17:34 -07:00
lantiq phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
marvell phy: marvell pxa-usb: fix Wvoid-pointer-to-enum-cast warning 2023-08-11 09:25:15 +01:00
mediatek phy-for-6.6 2023-09-03 10:38:02 -07:00
microchip phy: sparx5-serdes: add skip_cmu_cfg check when configuring lanes 2023-05-08 17:13:01 +05:30
motorola phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins 2023-09-14 17:05:27 +05:30
mscc phy: phy-ocelot-serdes: add ability to be used in a non-syscon configuration 2023-03-20 09:08:48 +00:00
qualcomm phy: qcom: phy-qcom-m31: change m31_ipq5332_regs to static 2023-09-21 16:05:30 +02:00
ralink phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
realtek phy: realtek: usb: Drop unnecessary error check for debugfs_create_dir() 2023-09-21 16:14:22 +02:00
renesas phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
rockchip phy: rockchip: inno-dsidphy: Add rv1126 support 2023-08-22 19:28:11 +05:30
samsung phy: exynos5-usbdrd: Add Exynos850 support 2023-08-22 19:41:15 +05:30
socionext phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
st phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
starfive phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE 2023-07-26 19:09:08 +05:30
sunplus phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
tegra phy: Remove duplicated include in xusb.c 2023-07-24 16:24:19 +05:30
ti phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
xilinx phy: zynqmp: Allow variation in refclk rate 2023-07-12 22:27:44 +05:30
Kconfig phy-for-6.6 2023-09-03 10:38:02 -07:00
Makefile phy-for-6.6 2023-09-03 10:38:02 -07:00
phy-can-transceiver.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-core-mipi-dphy.c phy: dphy: add support to calculate the timing based on hs_clk_rate 2022-10-27 14:38:04 +03:00
phy-core.c phy: core: add debugfs files 2023-05-19 23:23:52 +05:30
phy-lgm-usb.c phy: phy-lgm-usb: Convert to platform remove callback returning void 2023-03-20 18:14:56 +05:30
phy-lpc18xx-usb-otg.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
phy-pistachio-usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
phy-xgene.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30