diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-07-23 19:49:52 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-23 13:04:54 -0700 |
commit | baf6722aa0cbc5381f11520eb661be71b3ac379e (patch) | |
tree | 3dd73244b5db5f0470e0a3962d3c1d32b4d0ef36 /drivers/ide/siimage.c | |
parent | 7b5cf701ea9c395c792e2a7e3b7caf4c68b87721 (diff) |
ide: 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 <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/siimage.c')
-rw-r--r-- | drivers/ide/siimage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/siimage.c b/drivers/ide/siimage.c index 57eea5a9047f..c4b20f350b84 100644 --- a/drivers/ide/siimage.c +++ b/drivers/ide/siimage.c @@ -648,8 +648,7 @@ static void sil_quirkproc(ide_drive_t *drive) static void init_iops_siimage(ide_hwif_t *hwif) { - struct pci_dev *dev = to_pci_dev(hwif->dev); - struct ide_host *host = pci_get_drvdata(dev); + struct ide_host *host = dev_get_drvdata(hwif->dev); hwif->hwif_data = NULL; |