]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: mt7621-gpio: make use of 'builtin_platform_driver'
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 18 Jun 2018 09:36:05 +0000 (11:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:50:58 +0000 (21:50 +0900)
This driver was being registered using 'module_platform_driver'
but it is not a module at all. Instead of this use
'builtin_platform_driver' which seems to be the correct one.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c

index f95310c230c1ee1b895a790db65f7b3bfc004b4d..6a31f60bdd123868f5ed4db531d1b3d0ce4584d4 100644 (file)
@@ -312,4 +312,4 @@ static struct platform_driver mediatek_gpio_driver = {
        },
 };
 
-module_platform_driver(mediatek_gpio_driver);
+builtin_platform_driver(mediatek_gpio_driver);