Skip to content

Remove incorrect usage of IS_ERR_OR_NULL on clk_get

Tony Prisk dri-devel kernel-janitors linux-arm-kernel linux-media lkml 2 versions Applied

Status from this message: I've applied first version of this patch to my tree for 3.9, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/26 patches 26 repliesApplied
  2. v1 posting 1/25 of 6 patches 1 replyApplied

Patches in v1 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/6clk: omap: Fix incorrect usage of IS_ERR_OR_NULLarch/arm/plat-omap/dmtimer.c+3 -30 replies
2/6clk: exynos: Fix incorrect usage of IS_ERR_OR_NULLdrivers/gpu/drm/exynos/exynos_mixer.c+7 -71 reply
3/6clk: exynos: Fix incorrect usage of IS_ERR_OR_NULLdrivers/gpu/drm/exynos/exynos_hdmi.c+5 -55 replies
4/6clk: s5p-tv: Fix incorrect usage of IS_ERR_OR_NULLdrivers/media/platform/s5p-tv/hdmi_drv.c drivers/media/platform/s5p-tv/mixer_drv.c drivers/media/platform/s5p-tv/sdo_drv.c+15 -151 reply
5/6clk: s5p-fimc: Fix incorrect usage of IS_ERR_OR_NULLdrivers/media/platform/s5p-fimc/fimc-mdevice.c+1 -10 replies
6/6clk: s5p-g2d: Fix incorrect usage of IS_ERR_OR_NULLdrivers/media/platform/s5p-g2d/g2d.c+2 -218 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchTony Lindgren
1/6A-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RESEND 0/6] Remove incorrect usage of IS_ERR_OR_NULL on clk_get

Resend to include mailing lists.

As per the kernel docs, clk_get() cannot return NULL.

* clk_get - lookup and obtain a reference to a clock producer.
* @dev: device for clock "consumer"
* @id: clock consumer ID
*
* Returns a struct clk corresponding to the clock producer, or
* valid IS_ERR() condition containing errno.

This patch set replaces instances of IS_ERR_OR_NULL tests againt clk_get() results with IS_ERR tests.

Tony Prisk (6):
clk: omap: Fix incorrect usage of IS_ERR_OR_NULL
clk: exynos: Fix incorrect usage of IS_ERR_OR_NULL
clk: exynos: Fix incorrect usage of IS_ERR_OR_NULL
clk: s5p-tv: Fix incorrect usage of IS_ERR_OR_NULL
clk: s5p-fimc: Fix incorrect usage of IS_ERR_OR_NULL
clk: s5p-g2d: Fix incorrect usage of IS_ERR_OR_NULL

 arch/arm/plat-omap/dmtimer.c                   |    6 +++---
 drivers/gpu/drm/exynos/exynos_hdmi.c           |   10 +++++-----
 drivers/gpu/drm/exynos/exynos_mixer.c          |   14 +++++++-------
 drivers/media/platform/s5p-fimc/fimc-mdevice.c |    2 +-
 drivers/media/platform/s5p-g2d/g2d.c           |    4 ++--
 drivers/media/platform/s5p-tv/hdmi_drv.c       |   10 +++++-----
 drivers/media/platform/s5p-tv/mixer_drv.c      |   10 +++++-----
 drivers/media/platform/s5p-tv/sdo_drv.c        |   10 +++++-----
 8 files changed, 33 insertions(+), 33 deletions(-)
Signature · 1 line
1.7.9.5