Skip to content

Commit 9978339

Browse files
thierryredingLinus Walleij
authored andcommitted
pinctrl: tegra: xusb: Add note about legacy status
Add a comment about why the call to of_match_node() cannot be replaced by of_device_get_match_data(). This will hopefully prevent people from attempting to clean this up in the future. Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20190923095400.GA11084@ulmo Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 5ff8aca commit 9978339

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/pinctrl/tegra/pinctrl-tegra-xusb.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,12 @@ int tegra_xusb_padctl_legacy_probe(struct platform_device *pdev)
885885
mutex_init(&padctl->lock);
886886
padctl->dev = &pdev->dev;
887887

888+
/*
889+
* Note that we can't replace this by of_device_get_match_data()
890+
* because we need the separate matching table for this legacy code on
891+
* Tegra124. of_device_get_match_data() would attempt to use the table
892+
* from the updated driver and fail.
893+
*/
888894
match = of_match_node(tegra_xusb_padctl_of_match, pdev->dev.of_node);
889895
padctl->soc = match->data;
890896

0 commit comments

Comments
 (0)