[PATCH] drm/hisilicon: Fix build error
Thomas Zimmermann
tzimmermann at suse.de
Wed Jan 13 10:09:25 UTC 2021
Hi
Am 13.01.21 um 10:19 schrieb Tian Tao:
> Fix the following errors:
> divers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c:
> In function ‘hibmc_hw_map’:
> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c:213:25:
> error: ‘dev’ undeclared (first use in this function);
>
> Fixes: 4d4dad21cc7bee "drm/hibmc: Remove references to struct drm_device.pdev"
I think I messed up the rebasing of this patch. Thank you for taking
care. hibmc_ttm.c can be removed. I can take care of this later today.
> Signed-off-by: Tian Tao <tiantao6 at hisilicon.com>
Acked-by: Thomas Zimmermann <tzimmermann at suse.de>
Best regards
Thomas
> ---
> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
> index 0a2edc7..abd6250 100644
> --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
> +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
> @@ -210,7 +210,7 @@ static void hibmc_hw_config(struct hibmc_drm_private *priv)
>
> static int hibmc_hw_map(struct hibmc_drm_private *priv)
> {
> - struct pci_dev *pdev = dev->pdev;
> + struct drm_device *dev = &priv->dev;
> struct pci_dev *pdev = to_pci_dev(dev->dev);
> resource_size_t addr, size, ioaddr, iosize;
>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210113/43f802c7/attachment.sig>
More information about the dri-devel
mailing list