mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +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
|
@ -1616,11 +1616,8 @@ static struct vio_driver ibmveth_driver = {
|
|||
.probe = ibmveth_probe,
|
||||
.remove = ibmveth_remove,
|
||||
.get_desired_dma = ibmveth_get_desired_dma,
|
||||
.driver = {
|
||||
.name = ibmveth_driver_name,
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &ibmveth_pm_ops,
|
||||
}
|
||||
.name = ibmveth_driver_name,
|
||||
.pm = &ibmveth_pm_ops,
|
||||
};
|
||||
|
||||
static int __init ibmveth_module_init(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue