drm/bochs: Remove references to struct drm_device.pdev
Using struct drm_device.pdev is deprecated. Convert bochs to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201201103542.2182-5-tzimmermann@suse.de
This commit is contained in:
parent
46fb883c3d
commit
c72a313b51
@ -121,7 +121,6 @@ static int bochs_pci_probe(struct pci_dev *pdev,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto err_free_dev;
|
goto err_free_dev;
|
||||||
|
|
||||||
dev->pdev = pdev;
|
|
||||||
pci_set_drvdata(pdev, dev);
|
pci_set_drvdata(pdev, dev);
|
||||||
|
|
||||||
ret = bochs_load(dev);
|
ret = bochs_load(dev);
|
||||||
|
@ -110,7 +110,7 @@ int bochs_hw_load_edid(struct bochs_device *bochs)
|
|||||||
int bochs_hw_init(struct drm_device *dev)
|
int bochs_hw_init(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct bochs_device *bochs = dev->dev_private;
|
struct bochs_device *bochs = dev->dev_private;
|
||||||
struct pci_dev *pdev = dev->pdev;
|
struct pci_dev *pdev = to_pci_dev(dev->dev);
|
||||||
unsigned long addr, size, mem, ioaddr, iosize;
|
unsigned long addr, size, mem, ioaddr, iosize;
|
||||||
u16 id;
|
u16 id;
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ void bochs_hw_fini(struct drm_device *dev)
|
|||||||
release_region(VBE_DISPI_IOPORT_INDEX, 2);
|
release_region(VBE_DISPI_IOPORT_INDEX, 2);
|
||||||
if (bochs->fb_map)
|
if (bochs->fb_map)
|
||||||
iounmap(bochs->fb_map);
|
iounmap(bochs->fb_map);
|
||||||
pci_release_regions(dev->pdev);
|
pci_release_regions(to_pci_dev(dev->dev));
|
||||||
kfree(bochs->edid);
|
kfree(bochs->edid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user