Skip to contentSkip to conversation

pci-rcar-gen2: add of match table

PATCH In review Ben Dooks 1 participant 1 message Feb 5, 2014

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/11 pci-rcar-gen2: add of match table

Add OF match table for pci-rcar-gen2 driver for device tree support.

---
Cc: Bjorn Helgaas <[email protected]>
Cc: Simon Horman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 drivers/pci/host/pci-rcar-gen2.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/pci/host/pci-rcar-gen2.c +8 -0
index ceec147..ea65bac 100644
@@ -311,9 +311,17 @@ static int __init rcar_pci_probe(struct platform_device *pdev)
 	return rcar_pci_add_controller(priv);
 }
 
+static struct of_device_id rcar_pci_of_match[] = {
+	{ .compatible = "renesas,pci-r8a7790", },
+	{ },
+};
+
+MODULE_DEVICE_TABLE(of, rcar_pci_of_match);
+
 static struct platform_driver rcar_pci_driver = {
 	.driver = {
 		.name = "pci-rcar-gen2",
+		.of_match_table = rcar_pci_of_match,
 	},
 };
 
Signature · 1 line
1.8.5.3