mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 14:33:24 -04:00
drm/hyperv: Move MODULE_DEVICE_TABLE to the device_id arrays
It matches the usual coding style to have the MODULE_DEVICE_TABLE macro directly after the respective arrays. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Michael Kelley <mhklinux@outlook.com> Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com> Link: https://patch.msgid.link/7f9d4a239c76b6bb384048ea5591a21ed87d9b0e.1782925276.git.u.kleine-koenig@baylibre.com
This commit is contained in:
committed by
Hamza Mahfooz
parent
4b08889d3b
commit
35fff4830c
@@ -56,6 +56,7 @@ static const struct pci_device_id hv_drm_pci_tbl[] = {
|
||||
},
|
||||
{ /* end of list */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, hv_drm_pci_tbl);
|
||||
|
||||
/*
|
||||
* PCI stub to support gen1 VM.
|
||||
@@ -224,6 +225,7 @@ static const struct hv_vmbus_device_id hv_drm_vmbus_tbl[] = {
|
||||
{HV_SYNTHVID_GUID},
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(vmbus, hv_drm_vmbus_tbl);
|
||||
|
||||
static struct hv_driver hv_drm_hv_driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
@@ -265,8 +267,6 @@ static void __exit hv_drm_exit(void)
|
||||
module_init(hv_drm_init);
|
||||
module_exit(hv_drm_exit);
|
||||
|
||||
MODULE_DEVICE_TABLE(pci, hv_drm_pci_tbl);
|
||||
MODULE_DEVICE_TABLE(vmbus, hv_drm_vmbus_tbl);
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Deepak Rawat <drawat.floss@gmail.com>");
|
||||
MODULE_DESCRIPTION("DRM driver for Hyper-V synthetic video device");
|
||||
|
||||
Reference in New Issue
Block a user