]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
use the new async probing feature for the hyperv drivers
authorArjan van de Ven <arjan@linux.intel.com>
Tue, 5 Jun 2018 20:37:49 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 11:02:28 +0000 (13:02 +0200)
Recent kernels support asynchronous probing; most hyperv drivers
can be probed async easily so set the required flag for this.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-hyperv.c
drivers/hv/hv_balloon.c
drivers/hv/hv_util.c
drivers/input/serio/hyperv-keyboard.c
drivers/net/hyperv/netvsc_drv.c
drivers/scsi/storvsc_drv.c
drivers/video/fbdev/hyperv_fb.c

index 3aa2bb9f0f811dbe118de6f31ce25900c33f7fd1..b372854cf38d3221d8598affb395845fb42ce930 100644 (file)
@@ -598,6 +598,9 @@ static struct  hv_driver mousevsc_drv = {
        .id_table = id_table,
        .probe = mousevsc_probe,
        .remove = mousevsc_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       },
 };
 
 static int __init mousevsc_init(void)
index b3e9f13f8bc339895117925aba730e7346c04f9b..b1b7880827931b3eab896c80d16865cfa207c746 100644 (file)
@@ -1765,6 +1765,9 @@ static  struct hv_driver balloon_drv = {
        .id_table = id_table,
        .probe =  balloon_probe,
        .remove =  balloon_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       },
 };
 
 static int __init init_balloon_drv(void)
index 14dce25c104f4b9dcb11627811a5f1241f1369f4..423205077bf6472b78122b78a97f920cebf87d9f 100644 (file)
@@ -487,6 +487,9 @@ static  struct hv_driver util_drv = {
        .id_table = id_table,
        .probe =  util_probe,
        .remove =  util_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       },
 };
 
 static int hv_ptp_enable(struct ptp_clock_info *info,
index 25151d9214e05c8b6de3ee6bf146617d99740697..47a0e81a2989c93389e2affd20414d17057cde79 100644 (file)
@@ -424,6 +424,9 @@ static struct  hv_driver hv_kbd_drv = {
        .id_table = id_table,
        .probe = hv_kbd_probe,
        .remove = hv_kbd_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       },
 };
 
 static int __init hv_kbd_init(void)
index fe2256bf1d137fea6b76c5e3a564b191e2b5da7c..eaf33df91ac58f08a2920105c0edae0ba5a35a0e 100644 (file)
@@ -2188,6 +2188,9 @@ static struct  hv_driver netvsc_drv = {
        .id_table = id_table,
        .probe = netvsc_probe,
        .remove = netvsc_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       },
 };
 
 /*
index 33a4a4dad324b271915b85ed0d30f47b9d2c9c99..f03dc03a42c35c31eb91ec2af88f18ddf98069de 100644 (file)
@@ -1935,6 +1935,9 @@ static struct hv_driver storvsc_drv = {
        .id_table = id_table,
        .probe = storvsc_probe,
        .remove = storvsc_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       },
 };
 
 #if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
index 2fd49b2358f8b17e59ee97f77817d2d2bdb735c3..403d8cd3e5827569dbd5378e4031dc4f007f543d 100644 (file)
@@ -912,6 +912,9 @@ static struct hv_driver hvfb_drv = {
        .id_table = id_table,
        .probe = hvfb_probe,
        .remove = hvfb_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       },
 };
 
 static int hvfb_pci_stub_probe(struct pci_dev *pdev,
@@ -929,6 +932,9 @@ static struct pci_driver hvfb_pci_stub_driver = {
        .id_table =     pci_stub_id_table,
        .probe =        hvfb_pci_stub_probe,
        .remove =       hvfb_pci_stub_remove,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+       }
 };
 
 static int __init hvfb_drv_init(void)