From e13229b66a43867e3c13b24da6bde7a2fe265ce6 Mon Sep 17 00:00:00 2001 From: Julien Stephan Date: Wed, 18 Mar 2026 17:50:57 +0100 Subject: [PATCH] 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 Signed-off-by: Julien Stephan Link: https://patch.msgid.link/20260318-mt8195-add-ufs-support-v2-5-f18eeeeb0e72@baylibre.com Signed-off-by: David Lechner --- drivers/phy/phy-mtk-ufs.c | 4 ---- 1 file changed, 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;