]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drivers/platform: Convert non-modular pdev_bus to use builtin_platform_driver
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sat, 2 May 2015 00:10:57 +0000 (20:10 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 16 Jun 2015 18:12:38 +0000 (14:12 -0400)
commit1dda2b42db1bbc788bf6de0a8141a305484f963b
tree44c3cc8448c4d0c9d69070fa4576aa1380524dc3
parentf309d4443130bf814e991f836e919dca22df37ae
drivers/platform: Convert non-modular pdev_bus to use builtin_platform_driver

This driver is configured with a Kconfig option that is
declared as a bool.  Hence it is not possible for the code
to be built as modular.  However the code is currently using
the module_platform_driver() macro for driver registration.

While this currently works, we really don't want to be including
the module.h header in non-modular code, which we'll be forced
to do, pending some upcoming code relocation from init.h into
module.h.  So we fix it now by using the non-modular equivalent.
And since we've already established that the code is non-modular,
we can completely drop any code relating to module_exit.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/platform/goldfish/pdev_bus.c