xen-platform: use builtin_pci_driver

Use builtin_pci_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Geliang Tang 2016-11-14 20:52:26 +08:00 committed by Juergen Gross
parent 0f06ac3b66
commit 1ea55e8078
1 changed files with 1 additions and 5 deletions

View File

@ -125,8 +125,4 @@ static struct pci_driver platform_driver = {
.id_table = platform_pci_tbl,
};
static int __init platform_pci_init(void)
{
return pci_register_driver(&platform_driver);
}
device_initcall(platform_pci_init);
builtin_pci_driver(platform_driver);