staging/sm7xxfb: use module_pci_driver macro
as the manual of module_pci_driver says that it can be used when the init and exit functions of the module does nothing but the pci_register_driver and pci_unregister_driver. use it for the sm7xxfb driver, as the driver does nothing in its _init and _exit functions but the register and unregister. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
aaf3ee4f80
commit
e6345c81b4
|
@ -1058,18 +1058,7 @@ static struct pci_driver smtcfb_driver = {
|
||||||
.driver.pm = SM7XX_PM_OPS,
|
.driver.pm = SM7XX_PM_OPS,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init smtcfb_init(void)
|
module_pci_driver(smtcfb_driver);
|
||||||
{
|
|
||||||
return pci_register_driver(&smtcfb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit smtcfb_exit(void)
|
|
||||||
{
|
|
||||||
pci_unregister_driver(&smtcfb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(smtcfb_init);
|
|
||||||
module_exit(smtcfb_exit);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Siliconmotion ");
|
MODULE_AUTHOR("Siliconmotion ");
|
||||||
MODULE_DESCRIPTION("Framebuffer driver for SMI Graphic Cards");
|
MODULE_DESCRIPTION("Framebuffer driver for SMI Graphic Cards");
|
||||||
|
|
Loading…
Reference in a new issue