mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
powerpc+sparc/vio: Modernize driver registration
This makes vio_register_driver() get the module owner & name at compile time like PCI drivers do, and adds a name pointer directly in struct vio_driver to avoid having to explicitly initialize the embedded struct device. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1d9a473150
commit
cb52d8970e
13 changed files with 44 additions and 48 deletions
|
@ -1244,10 +1244,7 @@ static struct vio_driver ds_driver = {
|
|||
.id_table = ds_match,
|
||||
.probe = ds_probe,
|
||||
.remove = ds_remove,
|
||||
.driver = {
|
||||
.name = "ds",
|
||||
.owner = THIS_MODULE,
|
||||
}
|
||||
.name = "ds",
|
||||
};
|
||||
|
||||
static int __init ds_init(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue