public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/16] don't treat NULL from clk_get() as an error
@ 2011-01-11 12:43 Jamie Iles
  2011-01-11 12:43 ` [PATCH 01/16] crypto: omap-aes: don't treat NULL clk " Jamie Iles
                   ` (15 more replies)
  0 siblings, 16 replies; 44+ messages in thread
From: Jamie Iles @ 2011-01-11 12:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jamie Iles

As described in a discussion with Russell King[1], clk_get() should
return a pointer to the struct clk or an ERR_PTR() encoded pointer on
error.  The pointer is effectively a cookie for the clk and NULL is a
valid cookie.  Fixup existing drivers to use IS_ERR() and not checking
against NULL or using IS_ERR_OR_NULL().

1. http://www.spinics.net/linux/lists/arm-kernel/msg110009.html

Jamie Iles (16):
  crypto: omap-aes: don't treat NULL clk as an error
  crypto: omap-sham: don't treat NULL clk as an error
  input: tnetv107x-keypad: don't treat NULL clk as an error
  input: tnetv107x-touchscreen: don't treat NULL clk as an error
  s3c2410fb: don't treat NULL clk as an error
  nuc900fb: don't treat NULL clk as an error
  staging: tidspbridge: don't treat NULL clk as an error
  ARM: samsung: serial: don't treat NULL clk as an error
  ARM: pxa: don't treat NULL clk as an error
  drivers/net: stmmac: don't treat NULL clk as an error
  drivers/net: sh_irda: don't treat NULL clk as an error
  mtd: mpc5121_nfc: don't treat NULL clk as an error
  MMC: jz4740: don't treat NULL clk as an error
  can: mpc5xxx_can: don't treat NULL clk as an error
  spi: dw_spi: don't treat NULL clk as an error
  w1: mxc_w1: don't treat NULL clk as an error

 drivers/crypto/omap-aes.c                 |    5 +++--
 drivers/crypto/omap-sham.c                |    4 ++--
 drivers/input/keyboard/tnetv107x-keypad.c |    5 +++--
 drivers/input/touchscreen/tnetv107x-ts.c  |    5 +++--
 drivers/mmc/host/jz4740_mmc.c             |    5 +++--
 drivers/mtd/nand/mpc5121_nfc.c            |    5 +++--
 drivers/net/can/mscan/mpc5xxx_can.c       |    5 +++--
 drivers/net/irda/sh_sir.c                 |    5 +++--
 drivers/net/stmmac/stmmac_timer.c         |    3 ++-
 drivers/pcmcia/pxa2xx_base.c              |    5 +++--
 drivers/serial/samsung.c                  |    3 ++-
 drivers/spi/dw_spi_mmio.c                 |    5 +++--
 drivers/staging/tidspbridge/core/wdt.c    |    9 +++++----
 drivers/video/nuc900fb.c                  |    5 +++--
 drivers/video/s3c2410fb.c                 |    5 +++--
 drivers/w1/masters/mxc_w1.c               |    5 +++--
 16 files changed, 47 insertions(+), 32 deletions(-)

-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2011-01-29  5:02 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-11 12:43 [PATCH 00/16] don't treat NULL from clk_get() as an error Jamie Iles
2011-01-11 12:43 ` [PATCH 01/16] crypto: omap-aes: don't treat NULL clk " Jamie Iles
2011-01-11 15:56   ` Aaro Koskinen
2011-01-12 14:32     ` Dmitry Kasatkin
2011-01-12 19:38   ` Tobias Karnat
2011-01-12 21:51     ` Jamie Iles
2011-01-13  2:25       ` Tobias Karnat
2011-01-11 12:43 ` [PATCH 02/16] crypto: omap-sham: " Jamie Iles
2011-01-11 15:56   ` Aaro Koskinen
2011-01-12 14:32     ` Dmitry Kasatkin
2011-01-29  5:01       ` Herbert Xu
2011-01-11 12:43 ` [PATCH 03/16] input: tnetv107x-keypad: " Jamie Iles
2011-01-11 12:43 ` [PATCH 04/16] input: tnetv107x-touchscreen: " Jamie Iles
2011-01-12  5:56   ` Dmitry Torokhov
2011-01-18  4:25     ` Dmitry Torokhov
2011-01-18  4:35       ` Dmitry Torokhov
2011-01-11 12:43 ` [PATCH 05/16] s3c2410fb: " Jamie Iles
2011-01-12  6:00   ` Paul Mundt
2011-01-11 12:43 ` [PATCH 06/16] nuc900fb: " Jamie Iles
2011-01-12  1:24   ` Wan ZongShun
2011-01-12  6:00     ` Paul Mundt
2011-01-11 12:43 ` [PATCH 07/16] staging: tidspbridge: " Jamie Iles
2011-01-11 15:50   ` Aaro Koskinen
2011-01-11 16:40     ` Jamie Iles
2011-01-11 12:43 ` [PATCH 08/16] ARM: samsung: serial: " Jamie Iles
2011-01-11 21:14   ` Russell King - ARM Linux
2011-01-12  2:21   ` Kukjin Kim
2011-01-11 12:43 ` [PATCH 09/16] ARM: pxa: " Jamie Iles
2011-01-11 21:14   ` Russell King - ARM Linux
2011-01-11 12:43 ` [PATCH 10/16] drivers/net: stmmac: " Jamie Iles
2011-01-12  8:00   ` Peppe CAVALLARO
2011-01-11 12:43 ` [PATCH 11/16] drivers/net: sh_irda: " Jamie Iles
2011-01-11 12:43 ` [PATCH 12/16] mtd: mpc5121_nfc: " Jamie Iles
2011-01-11 15:15   ` Wolfram Sang
2011-01-18 12:09   ` Artem Bityutskiy
2011-01-11 12:43 ` [PATCH 13/16] MMC: jz4740: " Jamie Iles
2011-01-11 23:22   ` Chris Ball
2011-01-11 12:43 ` [PATCH 14/16] can: mpc5xxx_can: " Jamie Iles
2011-01-11 15:18   ` Wolfram Sang
2011-01-11 12:43 ` [PATCH 15/16] spi: dw_spi: " Jamie Iles
2011-01-11 15:20   ` Grant Likely
2011-01-11 12:43 ` [PATCH 16/16] w1: mxc_w1: " Jamie Iles
2011-01-11 15:10   ` Sascha Hauer
2011-01-11 21:15   ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox