From: Julien Stephan Date: Wed, 18 Mar 2026 16:50:57 +0000 (+0100) Subject: drivers: phy: phy-mtk-ufs: do not alloc priv with priv_auto X-Git-Tag: v2026.07-rc1~36^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e13229b66a43867e3c13b24da6bde7a2fe265ce6;p=thirdparty%2Fu-boot.git 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 --- 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;