MIPS: Lantiq: Make vmmc explicitly non-modular
The Makefile entry controlling compilation of this code is: arch/mips/lantiq/xway/vmmc.o ---> arch/mips/lantiq/xway/Makefile:obj-y += vmmc.o ...meaning that it currently is not being built as a module by anyone. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. We replace module.h with export.h since the file does actually use EXPORT_SYMBOL. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: John Crispin <john@phrozen.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/13930/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
62ee73d284
commit
0008ef9b15
|
@ -6,7 +6,7 @@
|
||||||
* Copyright (C) 2012 John Crispin <john@phrozen.org>
|
* Copyright (C) 2012 John Crispin <john@phrozen.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/export.h>
|
||||||
#include <linux/of_platform.h>
|
#include <linux/of_platform.h>
|
||||||
#include <linux/of_gpio.h>
|
#include <linux/of_gpio.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
|
@ -55,7 +55,6 @@ static const struct of_device_id vmmc_match[] = {
|
||||||
{ .compatible = "lantiq,vmmc-xway" },
|
{ .compatible = "lantiq,vmmc-xway" },
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, vmmc_match);
|
|
||||||
|
|
||||||
static struct platform_driver vmmc_driver = {
|
static struct platform_driver vmmc_driver = {
|
||||||
.probe = vmmc_probe,
|
.probe = vmmc_probe,
|
||||||
|
@ -64,5 +63,4 @@ static struct platform_driver vmmc_driver = {
|
||||||
.of_match_table = vmmc_match,
|
.of_match_table = vmmc_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
builtin_platform_driver(vmmc_driver);
|
||||||
module_platform_driver(vmmc_driver);
|
|
||||||
|
|
Loading…
Reference in New Issue