Skip to content

Commit

Permalink
net/ncsi: use proper "mellanox" DT vendor prefix
Browse files Browse the repository at this point in the history
"mlx" Devicetree vendor prefix is not documented and instead "mellanox"
should be used.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220622115416.7400-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Jakub Kicinski committed Jun 24, 2022
1 parent 7c97bc0 commit ad887a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/ncsi/ncsi-manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,8 @@ struct ncsi_dev *ncsi_register_dev(struct net_device *dev,
pdev = to_platform_device(dev->dev.parent);
if (pdev) {
np = pdev->dev.of_node;
if (np && of_get_property(np, "mlx,multi-host", NULL))
if (np && (of_get_property(np, "mellanox,multi-host", NULL) ||
of_get_property(np, "mlx,multi-host", NULL)))
ndp->mlx_multi_host = true;
}

Expand Down

0 comments on commit ad887a5

Please sign in to comment.