diff options
| author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-10-11 01:19:03 -0400 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2007-10-11 06:40:49 -0400 |
| commit | 84dd4676f5519b86aee3bfaf1b230be2cb43f69b (patch) | |
| tree | 56bd4fa1d945ccd07b2118c72264e6d10ed4ba30 /arch/powerpc/sysdev | |
| parent | 8251b4c481bca72568e9c1042ea11189838e5f6d (diff) | |
[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>
Diffstat (limited to 'arch/powerpc/sysdev')
| -rw-r--r-- | arch/powerpc/sysdev/axonram.c | 8 | ||||
| -rw-r--r-- | arch/powerpc/sysdev/pmi.c | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index ab037a3a40..4d3ba63bba 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c | |||
| @@ -324,11 +324,13 @@ static struct of_device_id axon_ram_device_id[] = { | |||
| 324 | }; | 324 | }; |
| 325 | 325 | ||
| 326 | static struct of_platform_driver axon_ram_driver = { | 326 | static struct of_platform_driver axon_ram_driver = { |
| 327 | .owner = THIS_MODULE, | ||
| 328 | .name = AXON_RAM_MODULE_NAME, | ||
| 329 | .match_table = axon_ram_device_id, | 327 | .match_table = axon_ram_device_id, |
| 330 | .probe = axon_ram_probe, | 328 | .probe = axon_ram_probe, |
| 331 | .remove = axon_ram_remove | 329 | .remove = axon_ram_remove, |
| 330 | .driver = { | ||
| 331 | .owner = THIS_MODULE, | ||
| 332 | .name = AXON_RAM_MODULE_NAME, | ||
| 333 | }, | ||
| 332 | }; | 334 | }; |
| 333 | 335 | ||
| 334 | /** | 336 | /** |
diff --git a/arch/powerpc/sysdev/pmi.c b/arch/powerpc/sysdev/pmi.c index 2f91b55b77..20edd1e94e 100644 --- a/arch/powerpc/sysdev/pmi.c +++ b/arch/powerpc/sysdev/pmi.c | |||
| @@ -205,10 +205,12 @@ static int pmi_of_remove(struct of_device *dev) | |||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | static struct of_platform_driver pmi_of_platform_driver = { | 207 | static struct of_platform_driver pmi_of_platform_driver = { |
| 208 | .name = "pmi", | ||
| 209 | .match_table = pmi_match, | 208 | .match_table = pmi_match, |
| 210 | .probe = pmi_of_probe, | 209 | .probe = pmi_of_probe, |
| 211 | .remove = pmi_of_remove | 210 | .remove = pmi_of_remove, |
| 211 | .driver = { | ||
| 212 | .name = "pmi", | ||
| 213 | }, | ||
| 212 | }; | 214 | }; |
| 213 | 215 | ||
| 214 | static int __init pmi_module_init(void) | 216 | static int __init pmi_module_init(void) |
