diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-09-27 22:21:43 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-14 06:53:11 +0200 |
commit | fa7744dbb69c06b69c7449063c440d8a53df9e6c (patch) | |
tree | a81c6103c0eec3aa21d26c419fd072b6e96fd5a7 /Documentation | |
parent | [SPARC32]: Add irqflags.h to sparc32 and use it from generic code. (diff) | |
download | linux-fa7744dbb69c06b69c7449063c440d8a53df9e6c.tar.xz linux-fa7744dbb69c06b69c7449063c440d8a53df9e6c.zip |
[SPARC/64]: Prepare to remove of_platform_driver name.
The name field of of_platform_driver is just copied into the
included device_driver. By not overriding an already initialised
device_driver name, we can convert the drivers over time to stop using
the of_platform_driver name.
Also we were not copying the owner field from of_platform_driver, so do
the same with it.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/sparc/sbus_drivers.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/sparc/sbus_drivers.txt b/Documentation/sparc/sbus_drivers.txt index 8418d35484fc..eb1e28ad8822 100644 --- a/Documentation/sparc/sbus_drivers.txt +++ b/Documentation/sparc/sbus_drivers.txt @@ -67,10 +67,12 @@ probe in an SBUS driver under Linux: MODULE_DEVICE_TABLE(of, mydevice_match); static struct of_platform_driver mydevice_driver = { - .name = "mydevice", .match_table = mydevice_match, .probe = mydevice_probe, .remove = __devexit_p(mydevice_remove), + .driver = { + .name = "mydevice", + }, }; static int __init mydevice_init(void) |