]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/xen: make platform-pci.c explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 22 Feb 2016 00:06:08 +0000 (19:06 -0500)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 21 Mar 2016 15:14:04 +0000 (15:14 +0000)
commit6d87fdd9bc2ec2ed45ca8869479cbbce4a2659c7
tree8a1cc933ed08c3b2cdef27433a66e3d2d9d8066d
parent7242a5b1b5ed1d1b1d64baf1ddaf5aeea9af62ac
drivers/xen: make platform-pci.c explicitly non-modular

The Kconfig currently controlling compilation of this code is:

arch/x86/xen/Kconfig:config XEN_PVHVM
arch/x86/xen/Kconfig:   def_bool y

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.

Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.

We also delete the MODULE_LICENSE tag etc. since all that information
was (or is now) contained at the top of the file in the comments.

In removing "module" from the init fcn name, we observe a namespace
collision with the probe function, so we use "probe" in the name of
the probe function, and "init" in the registration fcn, as per
standard convention, as suggested by Stefano.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/platform-pci.c