diff options
| author | Chuhong Yuan <[email protected]> | 2019-07-24 11:27:30 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2019-08-06 12:33:50 +0000 |
| commit | a40c28700d98d955f0d8fc96b5feb00b23fd8a6a (patch) | |
| tree | 0efdabefd80dbfeb3e55463762e3b3f2d962881a /drivers/net/wireless/intel/iwlegacy/common.c | |
| parent | rsi: fix for sdio interface setup in 9116 (diff) | |
| download | kernel-a40c28700d98d955f0d8fc96b5feb00b23fd8a6a.tar.gz kernel-a40c28700d98d955f0d8fc96b5feb00b23fd8a6a.zip | |
iwlegacy: Use dev_get_drvdata where possible
Instead of using to_pci_dev + pci_get_drvdata,
use dev_get_drvdata to make code simpler.
Signed-off-by: Chuhong Yuan <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy/common.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlegacy/common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/common.c b/drivers/net/wireless/intel/iwlegacy/common.c index 4a88e35d58d7..73f7bbf742bc 100644 --- a/drivers/net/wireless/intel/iwlegacy/common.c +++ b/drivers/net/wireless/intel/iwlegacy/common.c @@ -4942,8 +4942,7 @@ EXPORT_SYMBOL(il_add_beacon_time); static int il_pci_suspend(struct device *device) { - struct pci_dev *pdev = to_pci_dev(device); - struct il_priv *il = pci_get_drvdata(pdev); + struct il_priv *il = dev_get_drvdata(device); /* * This function is called when system goes into suspend state |
