| From 124eaef23775dbcf56b2f5ef0b285526058cb41f Mon Sep 17 00:00:00 2001 |
| From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> |
| Date: Tue, 24 Apr 2018 16:40:03 +0100 |
| Subject: [PATCH 1329/1795] drm: rcar-du: Use NULL for table initialisation |
| |
| Replace the initialisation of the vsps table with a NULL specifier. |
| |
| Fixes the following warning: |
| linux/drivers/gpu/drm/rcar-du/rcar_du_kms.c:483:40: |
| warning: Using plain integer as NULL pointer |
| CC drivers/gpu/drm/rcar-du/rcar_du_kms.o |
| |
| Fixes: 3e81374e2014 ("drm: rcar-du: Support multiple sources from the same VSP") |
| Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> |
| Reviewed-by: Vaishali Thakkar <vthakkar@vaishalithakkar.in> |
| Reviewed-by: Simon Horman <horms+renesas@verge.net.au> |
| Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| (cherry picked from commit 3b0033eb39360dc655466c5f1e6852d5a83b384d) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| drivers/gpu/drm/rcar-du/rcar_du_kms.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm/rcar-du/rcar_du_kms.c |
| index f4ac0f884f00..8b56e7108a09 100644 |
| --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c |
| +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c |
| @@ -428,7 +428,7 @@ static int rcar_du_vsps_init(struct rcar_du_device *rcdu) |
| struct { |
| struct device_node *np; |
| unsigned int crtcs_mask; |
| - } vsps[RCAR_DU_MAX_VSPS] = { { 0, }, }; |
| + } vsps[RCAR_DU_MAX_VSPS] = { { NULL, }, }; |
| unsigned int vsps_count = 0; |
| unsigned int cells; |
| unsigned int i; |
| -- |
| 2.19.0 |
| |