Repository navigation
Commit 69b4bf2
cb710/core.c: use generic power management
Drivers should not use legacy power management as they have to manage power
states and related operations, for the device, themselves. This driver was
handling them with the help of PCI helper functions like
pci_save/restore_state(), pci_enable/disable_device(), etc.
With generic PM, all essentials will be handled by the PCI core. Driver
needs to do only device-specific operations.
Compile-tested only.
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Link: https://lore.kernel.org/r/20200629081531.214734-2-vaibhavgupta40@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent ae56942 commit 69b4bf2
1 file changed
Lines changed: 7 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
| 169 | + | |
172 | 170 | | |
| 171 | + | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 175 | | |
181 | 176 | | |
182 | 177 | | |
183 | | - | |
| 178 | + | |
184 | 179 | | |
| 180 | + | |
185 | 181 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 182 | | |
194 | 183 | | |
195 | 184 | | |
196 | 185 | | |
197 | 186 | | |
198 | | - | |
199 | | - | |
200 | 187 | | |
201 | 188 | | |
202 | 189 | | |
| |||
312 | 299 | | |
313 | 300 | | |
314 | 301 | | |
| 302 | + | |
| 303 | + | |
315 | 304 | | |
316 | 305 | | |
317 | 306 | | |
318 | 307 | | |
319 | 308 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 309 | + | |
324 | 310 | | |
325 | 311 | | |
326 | 312 | | |
| |||
0 commit comments