File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -927,7 +927,8 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features)
927
927
if (!list_empty (& child -> devices )) {
928
928
dev = list_first_entry (& child -> devices ,
929
929
struct pci_dev , bus_list );
930
- if (pci_reset_bus (dev ))
930
+ ret = pci_reset_bus (dev );
931
+ if (ret )
931
932
pci_warn (dev , "can't reset device: %d\n" , ret );
932
933
933
934
break ;
@@ -1036,6 +1037,13 @@ static void vmd_remove(struct pci_dev *dev)
1036
1037
ida_simple_remove (& vmd_instance_ida , vmd -> instance );
1037
1038
}
1038
1039
1040
+ static void vmd_shutdown (struct pci_dev * dev )
1041
+ {
1042
+ struct vmd_dev * vmd = pci_get_drvdata (dev );
1043
+
1044
+ vmd_remove_irq_domain (vmd );
1045
+ }
1046
+
1039
1047
#ifdef CONFIG_PM_SLEEP
1040
1048
static int vmd_suspend (struct device * dev )
1041
1049
{
@@ -1101,6 +1109,7 @@ static struct pci_driver vmd_drv = {
1101
1109
.id_table = vmd_ids ,
1102
1110
.probe = vmd_probe ,
1103
1111
.remove = vmd_remove ,
1112
+ .shutdown = vmd_shutdown ,
1104
1113
.driver = {
1105
1114
.pm = & vmd_dev_pm_ops ,
1106
1115
},
You can’t perform that action at this time.
0 commit comments