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 a622435 commit 72de208Copy full SHA for 72de208
drivers/pci/controller/cadence/pci-j721e.c
@@ -354,7 +354,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
354
struct device *dev = &pdev->dev;
355
struct device_node *node = dev->of_node;
356
struct pci_host_bridge *bridge;
357
- struct j721e_pcie_data *data;
+ const struct j721e_pcie_data *data;
358
struct cdns_pcie *cdns_pcie;
359
struct j721e_pcie *pcie;
360
struct cdns_pcie_rc *rc;
@@ -367,7 +367,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
367
int ret;
368
int irq;
369
370
- data = (struct j721e_pcie_data *)of_device_get_match_data(dev);
+ data = of_device_get_match_data(dev);
371
if (!data)
372
return -EINVAL;
373
0 commit comments