Skip to content

Commit

Permalink
xen-platform: use builtin_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geliang Tang authored and Juergen Gross committed Nov 17, 2016
1 parent 0f06ac3 commit 1ea55e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/xen/platform-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 1ea55e8

Please sign in to comment.