summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJulien Stephan <[email protected]>2026-03-18 17:50:57 +0100
committerDavid Lechner <[email protected]>2026-04-17 17:05:54 -0500
commite13229b66a43867e3c13b24da6bde7a2fe265ce6 (patch)
tree2c6fba38c493b2aca566fdf4a7e41eff886d2381 /drivers
parentebb222e8c554501624a51b41331c1ce8faa09767 (diff)
drivers: phy: phy-mtk-ufs: do not alloc priv with priv_auto
When priv_auto is specified, we should not manually alloc memory for priv data. Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Julien Stephan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/phy/phy-mtk-ufs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/phy/phy-mtk-ufs.c b/drivers/phy/phy-mtk-ufs.c
index 0522e1ab683..c4c214dcde0 100644
--- a/drivers/phy/phy-mtk-ufs.c
+++ b/drivers/phy/phy-mtk-ufs.c
@@ -139,10 +139,6 @@ static int mtk_ufs_phy_probe(struct udevice *dev)
fdt_addr_t addr;
int ret;
- phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL);
- if (!phy)
- return -ENOMEM;
-
addr = dev_read_addr(dev);
if (addr == FDT_ADDR_T_NONE)
return -ENOMEM;