File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
drivers/pci/controller/cadence Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
45
45
{
46
46
const struct cdns_plat_pcie_of_data * data ;
47
47
struct cdns_plat_pcie * cdns_plat_pcie ;
48
- const struct of_device_id * match ;
49
48
struct device * dev = & pdev -> dev ;
50
49
struct pci_host_bridge * bridge ;
51
50
struct cdns_pcie_ep * ep ;
@@ -54,11 +53,10 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
54
53
bool is_rc ;
55
54
int ret ;
56
55
57
- match = of_match_device ( cdns_plat_pcie_of_match , dev );
58
- if (!match )
56
+ data = of_device_get_match_data ( dev );
57
+ if (!data )
59
58
return - EINVAL ;
60
59
61
- data = (struct cdns_plat_pcie_of_data * )match -> data ;
62
60
is_rc = data -> is_rc ;
63
61
64
62
pr_debug (" Started %s with is_rc: %d\n" , __func__ , is_rc );
You can’t perform that action at this time.
0 commit comments