[POWERPC] Move of_platform_driver initialisations: arch/powerpc
We no longer initialise the name and owner fields of the of_platform_driver, but use the fields of the embedded device_driver's name field instead. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Родитель
8251b4c481
Коммит
84dd4676f5
|
@ -320,10 +320,12 @@ static struct of_device_id gpio_mdio_match[] =
|
||||||
|
|
||||||
static struct of_platform_driver gpio_mdio_driver =
|
static struct of_platform_driver gpio_mdio_driver =
|
||||||
{
|
{
|
||||||
.name = "gpio-mdio-bitbang",
|
|
||||||
.match_table = gpio_mdio_match,
|
.match_table = gpio_mdio_match,
|
||||||
.probe = gpio_mdio_probe,
|
.probe = gpio_mdio_probe,
|
||||||
.remove = gpio_mdio_remove,
|
.remove = gpio_mdio_remove,
|
||||||
|
.driver = {
|
||||||
|
.name = "gpio-mdio-bitbang",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
int gpio_mdio_init(void)
|
int gpio_mdio_init(void)
|
||||||
|
|
|
@ -324,11 +324,13 @@ static struct of_device_id axon_ram_device_id[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver axon_ram_driver = {
|
static struct of_platform_driver axon_ram_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = AXON_RAM_MODULE_NAME,
|
|
||||||
.match_table = axon_ram_device_id,
|
.match_table = axon_ram_device_id,
|
||||||
.probe = axon_ram_probe,
|
.probe = axon_ram_probe,
|
||||||
.remove = axon_ram_remove
|
.remove = axon_ram_remove,
|
||||||
|
.driver = {
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.name = AXON_RAM_MODULE_NAME,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -205,10 +205,12 @@ static int pmi_of_remove(struct of_device *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_platform_driver pmi_of_platform_driver = {
|
static struct of_platform_driver pmi_of_platform_driver = {
|
||||||
.name = "pmi",
|
|
||||||
.match_table = pmi_match,
|
.match_table = pmi_match,
|
||||||
.probe = pmi_of_probe,
|
.probe = pmi_of_probe,
|
||||||
.remove = pmi_of_remove
|
.remove = pmi_of_remove,
|
||||||
|
.driver = {
|
||||||
|
.name = "pmi",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init pmi_module_init(void)
|
static int __init pmi_module_init(void)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче