diff options
author | Dan Carpenter | 2014-06-11 08:36:23 +0200 |
---|---|---|
committer | Inki Dae | 2014-06-24 04:11:54 +0200 |
commit | dcdffedaf277cd344c49650ee13e622d74af627c (patch) | |
tree | b68c879e4b6dd6d2a5b2b3024bbbd5dd4eb4d7c0 /drivers/gpu | |
parent | drm/exynos: dpi: Fix NULL pointer dereference with legacy bindings (diff) | |
download | kernel-qcow2-linux-dcdffedaf277cd344c49650ee13e622d74af627c.tar.gz kernel-qcow2-linux-dcdffedaf277cd344c49650ee13e622d74af627c.tar.xz kernel-qcow2-linux-dcdffedaf277cd344c49650ee13e622d74af627c.zip |
drm/exynos: change zero to NULL for sparse
We recently changed this function to return a pointer instead of an int
so we need to change this zero to a NULL or Sparse complains:
drivers/gpu/drm/exynos/exynos_drm_drv.h:346:47:
warning: Using plain integer as NULL pointer
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 36535f398848..06cde4506278 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -343,7 +343,7 @@ struct exynos_drm_display * exynos_dpi_probe(struct device *dev); int exynos_dpi_remove(struct device *dev); #else static inline struct exynos_drm_display * -exynos_dpi_probe(struct device *dev) { return 0; } +exynos_dpi_probe(struct device *dev) { return NULL; } static inline int exynos_dpi_remove(struct device *dev) { return 0; } #endif |