Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5875261yba; Thu, 11 Apr 2019 07:34:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxomudrdgKR40nR+6npeupPp80Qi7joDM5uTpEfCgCm2zk8D+T0bS3XNGyJXC0ZhM//HNyw X-Received: by 2002:a63:d709:: with SMTP id d9mr45419003pgg.38.1554993268364; Thu, 11 Apr 2019 07:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554993268; cv=none; d=google.com; s=arc-20160816; b=AJAQ1gczaWdmhnfKtAdnpCn0uinFet25rsczsdTTbFPO/VK3tECd4Xy0J1XqwYTfJS Pxr/+XILwnh2cXTOeohCTyBLeubJp6bmDplFs0EdYV0Uu32pVvt3CmWbDTrEzT39m9ei EAp8YDjuagc0k8/bvOCA7BwpBJwCtUFrqdzVrSG5BnvNo5gb82s2eLzRDe+ZTPUaTYgj Az/wVfadr8u1D07em+xJtqOKgurFzrLBXtXdIg1g+VVWOxYsB9GXiO9ehEeOLGNdIjlN k914Rp+o4QVMtvtaHJw6OIkLfn7T1oMKI5OwWC4pdeKlMy2zlP/k9ENTHwe7JM2Gk8FB GfBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=jZ3Sej2lpxzHaDA2xeE0bvxAFAUxowH585VZxQ+xrhE=; b=dPA8aRfhFvTjcZoy874QkyENgRn8S41EQ+KBHTVdDwn3d1vtMw3A4f8b48hVjVa5Ql xDG3D7+vqHFr93tZ440QzgPZ7D66f9usgwAWj6ua7dRaG7uWCy0+pXkXq2OeEJkULvM+ 9/mEl/TqLJrypaL1/evDnQ4JP6A39IkHwiv+TBgB94e+jowhmGPSpwMxHte/Ls8yLc5H KXBYs3anjUcxqv9GXNBFXx8nG8lQeRB9E0P+EBX8p9Ong4xm1J/1MAMdK8UNW4qjgU79 OGHFx9hyX80CwjlDQpWfo5P8ltE96skjbwJXrqm8fsQWkCHR/AjHP5E4wK/h0bLD/PD/ t6Kw== 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 a64si35163915pge.592.2019.04.11.07.34.11; Thu, 11 Apr 2019 07:34:28 -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 S1726752AbfDKOdg (ORCPT + 99 others); Thu, 11 Apr 2019 10:33:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:39410 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726640AbfDKOdf (ORCPT ); Thu, 11 Apr 2019 10:33:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2B854AF56; Thu, 11 Apr 2019 14:33:34 +0000 (UTC) From: Thomas Bogendoerfer To: Joshua Kinard , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] rtc: ds1685: use correct device struct to get platform device struct Date: Thu, 11 Apr 2019 16:33:22 +0200 Message-Id: <20190411143323.20945-2-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.13.7 In-Reply-To: <20190411143323.20945-1-tbogendoerfer@suse.de> References: <20190411143323.20945-1-tbogendoerfer@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: aaaf5fbf56f1 ("rtc: add driver for DS1685 family of real time clocks") Signed-off-by: Thomas Bogendoerfer --- drivers/rtc/rtc-ds1685.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c index 2f5194df239e..929f28375b87 100644 --- a/drivers/rtc/rtc-ds1685.c +++ b/drivers/rtc/rtc-ds1685.c @@ -655,7 +655,7 @@ ds1685_rtc_work_queue(struct work_struct *work) { struct ds1685_priv *rtc = container_of(work, struct ds1685_priv, work); - struct platform_device *pdev = to_platform_device(&rtc->dev->dev); + struct platform_device *pdev = to_platform_device(rtc->dev->dev.parent); struct mutex *rtc_mutex = &rtc->dev->ops_lock; u8 ctrl4a, ctrl4b; -- 2.13.7