public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: mturquette@linaro.org (Mike Turquette)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clk: wm831x: Initialise wm831x pointer on init
Date: Fri, 30 Aug 2013 12:39:06 -0700	[thread overview]
Message-ID: <20130830193906.10934.31659@quantum> (raw)
In-Reply-To: <1377775261-3190-1-git-send-email-broonie@kernel.org>

Quoting Mark Brown (2013-08-29 04:21:01)
> From: Mark Brown <broonie@linaro.org>
> 
> Otherwise any attempt to interact with the hardware will crash. This is
> what happens when drivers get written blind.

Taken into clk-next.

Regards,
Mike

> 
> Signed-off-by: Mark Brown <broonie@linaro.org>
> Cc: stable at vger.kernel.org
> ---
>  drivers/clk/clk-wm831x.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/clk/clk-wm831x.c b/drivers/clk/clk-wm831x.c
> index 1b3f8c9..1d5af3f 100644
> --- a/drivers/clk/clk-wm831x.c
> +++ b/drivers/clk/clk-wm831x.c
> @@ -360,6 +360,8 @@ static int wm831x_clk_probe(struct platform_device *pdev)
>         if (!clkdata)
>                 return -ENOMEM;
>  
> +       clkdata->wm831x = wm831x;
> +
>         /* XTAL_ENA can only be set via OTP/InstantConfig so just read once */
>         ret = wm831x_reg_read(wm831x, WM831X_CLOCK_CONTROL_2);
>         if (ret < 0) {
> -- 
> 1.8.4.rc3

      reply	other threads:[~2013-08-30 19:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 11:21 [PATCH] clk: wm831x: Initialise wm831x pointer on init Mark Brown
2013-08-30 19:39 ` Mike Turquette [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130830193906.10934.31659@quantum \
    --to=mturquette@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox