We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62cb1cf commit c9839acCopy full SHA for c9839ac
drivers/spi/spi-tegra20-slink.c
@@ -1006,14 +1006,8 @@ static int tegra_slink_probe(struct platform_device *pdev)
1006
struct resource *r;
1007
int ret, spi_irq;
1008
const struct tegra_slink_chip_data *cdata = NULL;
1009
- const struct of_device_id *match;
1010
1011
- match = of_match_device(tegra_slink_of_match, &pdev->dev);
1012
- if (!match) {
1013
- dev_err(&pdev->dev, "Error: No device match found\n");
1014
- return -ENODEV;
1015
- }
1016
- cdata = match->data;
+ cdata = of_device_get_match_data(&pdev->dev);
1017
1018
master = spi_alloc_master(&pdev->dev, sizeof(*tspi));
1019
if (!master) {
0 commit comments