Skip to content

Commit eca0f0a

Browse files
hongyansJiri Kosina
authored andcommitted
HID: remove NO_D3 flag when remove driver
Remove the NO_D3 flag when remove the driver and let device enter into D3, it will save more power. Signed-off-by: Song Hongyan <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent c11fb13 commit eca0f0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/intel-ish-hid/ipc/pci-ish.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ static void ish_remove(struct pci_dev *pdev)
184184
struct ishtp_device *ishtp_dev = pci_get_drvdata(pdev);
185185

186186
ishtp_bus_remove_all_clients(ishtp_dev, false);
187+
pdev->dev_flags &= ~PCI_DEV_FLAGS_NO_D3;
187188
ish_device_disable(ishtp_dev);
188189
}
189190

0 commit comments

Comments
 (0)