From patchwork Mon Jun 3 00:02:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17424 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E501620F44 for ; Mon, 3 Jun 2013 00:02:22 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf5018109qen.2 for ; Sun, 02 Jun 2013 17:02:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=fP+V2SFfHyTibJau26kTQ6oxodbBmfZZKCzSH0NPeOQ=; b=kVPou93VBYV3mUDQQAotr44Nxxr0pw2d5oCXLtAeZCU/Ms6OOb7nKQL9W4dZpYU+8j Bl8XeIIa+F4yzKVC7uXluSGQUSHN7bym3GCgA0eVOCXY9PtE2jJluJEpo0RWW0vTY5LL zgH1WY0zg/IOcB+W/Na3HJzBly+Y5FjKiMAUgAppKId+z6WVKN8M/lB74YxW0TUr7t+X 6bNM9r0DBtWh1nPj5+YO+w1dWzN0+jsN/sj2Z2HIekUhAP+ezJ4Ey5PRNi5wMjPF3y7m xo7GJ/CkfSuuFfWo1tVmcqk8MdB4VtC1QPwgA1JnZ+HqrUiRoir0GwbsJpwaf6BjJpnn m2FA== X-Received: by 10.224.53.198 with SMTP id n6mr12686492qag.2.1370217742480; Sun, 02 Jun 2013 17:02:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.127.114 with SMTP id nf18ls1747011qeb.8.gmail; Sun, 02 Jun 2013 17:02:22 -0700 (PDT) X-Received: by 10.58.75.41 with SMTP id z9mr5777751vev.4.1370217742230; Sun, 02 Jun 2013 17:02:22 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id wf4si1100315vdb.25.2013.06.02.17.02.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Jun 2013 17:02:21 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::229; Received: by mail-ve0-f169.google.com with SMTP id m1so2362332ves.14 for ; Sun, 02 Jun 2013 17:02:21 -0700 (PDT) X-Received: by 10.52.170.148 with SMTP id am20mr13604898vdc.75.1370217741656; Sun, 02 Jun 2013 17:02:21 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp59125vcb; Sun, 2 Jun 2013 17:02:21 -0700 (PDT) X-Received: by 10.112.138.228 with SMTP id qt4mr9404669lbb.106.1370217740351; Sun, 02 Jun 2013 17:02:20 -0700 (PDT) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [2a00:1450:4010:c03::22c]) by mx.google.com with ESMTPS id e7si16485812laa.216.2013.06.02.17.02.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Jun 2013 17:02:19 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4010:c03::22c is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=2a00:1450:4010:c03::22c; Received: by mail-la0-f44.google.com with SMTP id er20so788347lab.17 for ; Sun, 02 Jun 2013 17:02:19 -0700 (PDT) X-Received: by 10.152.2.233 with SMTP id 9mr9845931lax.34.1370217739032; Sun, 02 Jun 2013 17:02:19 -0700 (PDT) Received: from localhost.localdomain (c83-249-209-226.bredband.comhem.se. [83.249.209.226]) by mx.google.com with ESMTPSA id 9sm22453178lbz.16.2013.06.02.17.02.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 02 Jun 2013 17:02:18 -0700 (PDT) From: Linus Walleij To: Matt Mackall , Herbert Xu Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH] hw_rng: nomadik: use clk_prepare_enable() Date: Mon, 3 Jun 2013 02:02:09 +0200 Message-Id: <1370217729-13699-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.1.4 X-Gm-Message-State: ALoCoQkn8ANnhyBM0OPEUl+tppstqyxOKdrqkTwC9nhHlzbLx9xKUjkOkPnOUJRfHdQHj+5D6c2p X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The Nomadik HW RNG driver has seen some rust and is not preparing the clock before use. Fix this up so we get rid of runtime complaints from the clock subsystem. Signed-off-by: Linus Walleij --- drivers/char/hw_random/nomadik-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/nomadik-rng.c b/drivers/char/hw_random/nomadik-rng.c index 96de024..232b87f 100644 --- a/drivers/char/hw_random/nomadik-rng.c +++ b/drivers/char/hw_random/nomadik-rng.c @@ -51,7 +51,7 @@ static int nmk_rng_probe(struct amba_device *dev, const struct amba_id *id) return ret; } - clk_enable(rng_clk); + clk_prepare_enable(rng_clk); ret = amba_request_regions(dev, dev->dev.init_name); if (ret)