From patchwork Fri Sep 9 13:25:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9323477 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 562236077F for ; Fri, 9 Sep 2016 13:26:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47D9629EBA for ; Fri, 9 Sep 2016 13:26:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B1E829EBC; Fri, 9 Sep 2016 13:26:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2ED5D29EBA for ; Fri, 9 Sep 2016 13:26:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751741AbcIIN0P (ORCPT ); Fri, 9 Sep 2016 09:26:15 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34144 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbcIIN0P (ORCPT ); Fri, 9 Sep 2016 09:26:15 -0400 Received: by mail-wm0-f68.google.com with SMTP id w12so2776271wmf.1; Fri, 09 Sep 2016 06:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=ed0kbpa57VIdzzy/q16j1d8QD75l94K/Sej69DwH6GI=; b=ru68BgJbQcttLdNjhTqq1FRSR4Qyr6yzBqSqx5Kt74acjcl9QfhtSKeditX+Xn/zNL T9kaigTlZHAGYx9Vg4sLygfrMFvc0/KyG4zXSK39pGseHU/+s2BKuSU7Tkb7QIwxnJVY wlaou0yoTlZ+WHQw+bLn3IkKZG1YAo3a17myTjncpjmSPN5TE1UXSkXa55rfgJfy8ZbJ vi+6ba7KSm+EXBMe/UFuiu9qyUfCWnMUrnkif5nBfbdbG7TpGoCibppbh+lrtbZTrnmP rs6f1WCt59t4YWufOV4mw6NSTN3Icu8CXgoQVgeINJZmgR0PN5G/xLzXGt7xiR4r81uj wSYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=ed0kbpa57VIdzzy/q16j1d8QD75l94K/Sej69DwH6GI=; b=X44l3nHeUYs6dse8TokBW90lbg3y5duLnqeqqboiNvtrT+Sf1YB7u6MITJTUQjGcCB pOIqsVilaoJq6zibtSuCO2WpFRzF6l2fXPwdegda+OiyCD1BA4M119+9Mec3GiLO40le HuZ5io+4KfsTieLaWs1/sZfoLKcBaD0EEeNzyTgx8o7eR7TpuQn1jBbxqxyPo3jimCfV szx/0yRnd0utIjUotBr2Vg170vZLyGkoa2YXzc2FJsfOhvxyzQ6dbX8z7nI731EAlw7u A8HpCinnQ2LkcSjymlGxypwZGroHADEQXy9V51kFRPPQO0JiuS2EvBks5wlPyOZMUWa/ AJlQ== X-Gm-Message-State: AE9vXwPEk4q1VQerFUdqmr9YvMRw9OJP8HIVn/XxeY+QJqN3tFEtIGE6keD4C56XRlKZAA== X-Received: by 10.194.139.236 with SMTP id rb12mr3163082wjb.101.1473427573243; Fri, 09 Sep 2016 06:26:13 -0700 (PDT) Received: from cizrna.lan ([109.72.12.101]) by smtp.gmail.com with ESMTPSA id 123sm3402984wmj.5.2016.09.09.06.26.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Sep 2016 06:26:11 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Cc: Tomeu Vizoso , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH] clk: rk808: Pass the right pointer as the get_hw context Date: Fri, 9 Sep 2016 15:25:06 +0200 Message-Id: <1473427506-28244-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.7.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Right now we are passing a pointer to a pointer to the structure that will be used to fetch the clk hw, which gets casted later to a pointer to the structure, thus getting garbage in the hw structs. Signed-off-by: Tomeu Vizoso Fixes: a8b6e85db6a6 ("clk: rk808: Migrate to clk_hw based OF and registration APIs") --- drivers/clk/clk-rk808.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-rk808.c b/drivers/clk/clk-rk808.c index faa447e191ef..6461f2820a5b 100644 --- a/drivers/clk/clk-rk808.c +++ b/drivers/clk/clk-rk808.c @@ -138,7 +138,7 @@ static int rk808_clkout_probe(struct platform_device *pdev) if (ret) return ret; - return of_clk_add_hw_provider(node, of_clk_rk808_get, &rk808_clkout); + return of_clk_add_hw_provider(node, of_clk_rk808_get, rk808_clkout); } static int rk808_clkout_remove(struct platform_device *pdev)