net: tulip: fix build with CONFIG_GSC

Fix typo which breaks build for parisc.

Fixes: 3daebfbeb4 ("net: tulip: convert to devres")
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Link: https://lore.kernel.org/all/CA+G9fYuCzU5VZ_nc+6NEdBXJdVCH=J2SB1Na1G_NS_0BNdGYtg@mail.gmail.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Link: https://lore.kernel.org/r/4719560.GXAFRqVoOG@eto.sf-tec.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Rolf Eike Beer 2022-05-20 15:28:21 +02:00 committed by Jakub Kicinski
parent c09b0cd2cc
commit dc2df00af9
1 changed files with 1 additions and 1 deletions

View File

@ -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)