mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <neil.armstrong@linaro.org> Signed-off-by: Julien Stephan <jstephan@baylibre.com> Link: https://patch.msgid.link/20260318-mt8195-add-ufs-support-v2-5-f18eeeeb0e72@baylibre.com Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
committed by
David Lechner
parent
ebb222e8c5
commit
e13229b66a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user