Commit c5d933b1 authored by Wei Yongjun's avatar Wei Yongjun Committed by Bjorn Helgaas

PCI: altera: Use builtin_platform_driver() to simplify the code

Use the builtin_platform_driver() macro to make the code simpler.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 1001354c
......@@ -641,8 +641,4 @@ static struct platform_driver altera_pcie_driver = {
},
};
static int altera_pcie_init(void)
{
return platform_driver_register(&altera_pcie_driver);
}
device_initcall(altera_pcie_init);
builtin_platform_driver(altera_pcie_driver);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment