#include <linux/kernel.h>
#include <linux/memblock.h>
#include <linux/mm.h>
+#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>
{ .compatible = "brcm,bcm6348-pci", },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, bcm6348_pci_of_match);
static struct platform_driver bcm6348_pci_driver = {
.probe = bcm6348_pci_probe,
.of_match_table = bcm6348_pci_of_match,
},
};
+module_platform_driver(bcm6348_pci_driver);
-int __init bcm6348_pci_init(void)
-{
- int ret = platform_driver_register(&bcm6348_pci_driver);
- if (ret)
- pr_err("pci-bcm6348: Error registering platform driver!\n");
- return ret;
-}
-late_initcall_sync(bcm6348_pci_init);
+MODULE_AUTHOR("Álvaro Fernández Rojas <noltari@gmail.com>");
+MODULE_DESCRIPTION("BCM6348 PCI Controller Driver");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:bcm6348-pci");
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/mm.h>
+#include <linux/module.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>
#include <linux/of_pci.h>
{ .compatible = "brcm,bcm6318-pcie", },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, bcm6318_pcie_of_match);
static struct platform_driver bcm6318_pcie_driver = {
.probe = bcm6318_pcie_probe,
.of_match_table = bcm6318_pcie_of_match,
},
};
+module_platform_driver(bcm6318_pcie_driver);
-int __init bcm6318_pcie_init(void)
-{
- int ret = platform_driver_register(&bcm6318_pcie_driver);
- if (ret)
- pr_err("pci-bcm6318: Error registering platform driver!\n");
- return ret;
-}
-late_initcall_sync(bcm6318_pcie_init);
+MODULE_AUTHOR("Álvaro Fernández Rojas <noltari@gmail.com>");
+MODULE_DESCRIPTION("BCM6318 PCIe Controller Driver");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:bcm6318-pcie");
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/mm.h>
+#include <linux/module.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>
#include <linux/of_pci.h>
{ .compatible = "brcm,bcm6328-pcie", },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, bcm6328_pcie_of_match);
static struct platform_driver bcm6328_pcie_driver = {
.probe = bcm6328_pcie_probe,
.of_match_table = bcm6328_pcie_of_match,
},
};
+module_platform_driver(bcm6328_pcie_driver);
-int __init bcm6328_pcie_init(void)
-{
- int ret = platform_driver_register(&bcm6328_pcie_driver);
- if (ret)
- pr_err("pci-bcm6328: Error registering platform driver!\n");
- return ret;
-}
-late_initcall_sync(bcm6328_pcie_init);
+MODULE_AUTHOR("Álvaro Fernández Rojas <noltari@gmail.com>");
+MODULE_DESCRIPTION("BCM6328 PCIe Controller Driver");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:bcm6328-pcie");