提交 dc2df00a 编写于 作者: R Rolf Eike Beer 提交者: Jakub Kicinski

net: tulip: fix build with CONFIG_GSC

Fix typo which breaks build for parisc.

Fixes: 3daebfbe ("net: tulip: convert to devres")
Reported-by: NLinux Kernel Functional Testing <lkft@linaro.org>
Link: https://lore.kernel.org/all/CA+G9fYuCzU5VZ_nc+6NEdBXJdVCH=J2SB1Na1G_NS_0BNdGYtg@mail.gmail.com/Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NRolf Eike Beer <eike-kernel@sf-tec.de>
Link: https://lore.kernel.org/r/4719560.GXAFRqVoOG@eto.sf-tec.deSigned-off-by: NJakub Kicinski <kuba@kernel.org>
上级 c09b0cd2
......@@ -117,7 +117,7 @@ static void tulip_build_fake_mediatable(struct tulip_private *tp)
0x00, 0x06 /* ttm bit map */
};
tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) +
tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) +
sizeof(struct medialeaf), GFP_KERNEL);
if (tp->mtable == NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册