Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 116d588e authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab
Browse files

[media] Mantis, hopper: use MODULE_DEVICE_TABLE



use the macro to make modules auto-loadable

Thanks to Ozan Çağlayan <ozan@pardus.org.tr> for pointing it out

Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e6f199f3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -251,6 +251,8 @@ static struct pci_device_id hopper_pci_table[] = {
	{ }
};

MODULE_DEVICE_TABLE(pci, hopper_pci_table);

static struct pci_driver hopper_pci_driver = {
	.name		= DRIVER_NAME,
	.id_table	= hopper_pci_table,
+2 −0
Original line number Diff line number Diff line
@@ -281,6 +281,8 @@ static struct pci_device_id mantis_pci_table[] = {
	{ }
};

MODULE_DEVICE_TABLE(pci, mantis_pci_table);

static struct pci_driver mantis_pci_driver = {
	.name		= DRIVER_NAME,
	.id_table	= mantis_pci_table,