Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2998290imm; Sun, 1 Jul 2018 10:01:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLmVggYAV2r/d8ab2h0tdlvmhWYMJnq7lXox1BEciRtU72Klid93sxlCdqAoLRHkc03AykZ X-Received: by 2002:a63:bd51:: with SMTP id d17-v6mr19620499pgp.42.1530464461772; Sun, 01 Jul 2018 10:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530464461; cv=none; d=google.com; s=arc-20160816; b=ndvFEbY9UF5IK7yhpBWkah8jjLkzVAO6l1j4Uf2OQS7be/36OGGjJt1L+nVGUplPpq NKhSrOVMGiIn/YTy1omzSTaIyY+QkbT7r8YrzbnxvHOuGst7oPEvTDOZkoCFgMkVUwlS D7YUrtj8PTFvTBAvyJw66bqnqx9TdBCKrrordpxt5fB4PLDJAOLaqNIqVIByjgskUGTP RI5SbAT4NKF06/7FTjSX4HwzOlf0sfFyfqlxYRfJu9CCvgiGvXbQoFwvcmcdsk0M/CZk +r/I+3YccJFhRGEOLsCfe/y+D4PaW2ZnIjgB2O5KxWW0AG7hzEHdqxaFaGVvucKDIU10 2ewg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=v9kMZYorQB6+W72b34sf/+24zPH5ljwAT4hdq2FQ2C4=; b=GYGyiocKdNLjTN3pgZQh1AmgLY1abK/k3sneqYiMdDq+GshQk0FdA5Uhp7fgB+Zn4X iJTksvh9OyAYYy1rqP2WuaWNIaBPJQAr2RwCKrOj3y8ACQHLSFgte8XZy7BYKGZgszoX xC3ZXOEhSao4yZ+Cf/+sJ6d86OM/4HU/wtZIskQJr63wtBA5O8dh6dPkjiRx0noZSsyq m4K/kO5t7j1n3pCJRGT/3duxqJaLVn/pd0qkeH/XbSjb7B2uJUCtheogjcgmNY8mHy28 ERzJI3yiefK5KnfmHxOEqNZLA6GXHnOkOZ9wwrUbyjn+r+5XC99BQed2+DlpvfGKlpzT ul1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si10538102plz.354.2018.07.01.10.00.47; Sun, 01 Jul 2018 10:01:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933480AbeGAQ7r (ORCPT + 99 others); Sun, 1 Jul 2018 12:59:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37942 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032134AbeGAQn6 (ORCPT ); Sun, 1 Jul 2018 12:43:58 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 57693A73; Sun, 1 Jul 2018 16:43:57 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Lee Jones Subject: [PATCH 4.17 162/220] mfd: twl-core: Fix clock initialization Date: Sun, 1 Jul 2018 18:23:06 +0200 Message-Id: <20180701160915.040688103@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Ujfalusi commit c218b3b242bd04539621b468f01ecd2af5a21a45 upstream. When looking up the clock we must use the client->dev as device since that is the one which is probed via DT. Cc: stable@vger.kernel.org # 4.16+ Signed-off-by: Peter Ujfalusi Signed-off-by: Lee Jones Signed-off-by: Greg Kroah-Hartman --- drivers/mfd/twl-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -1177,7 +1177,7 @@ twl_probe(struct i2c_client *client, con twl_priv->ready = true; /* setup clock framework */ - clocks_init(&pdev->dev, pdata ? pdata->clock : NULL); + clocks_init(&client->dev, pdata ? pdata->clock : NULL); /* read TWL IDCODE Register */ if (twl_class_is_4030()) {