From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com. [2607:f8b0:400e:c03::22d]) by gmr-mx.google.com with ESMTPS id x3si1934833pdh.2.2015.05.20.07.46.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 May 2015 07:46:21 -0700 (PDT) Received: by pabru16 with SMTP id ru16so69578444pab.1 for ; Wed, 20 May 2015 07:46:21 -0700 (PDT) From: Joshua Clayton To: linux-arm-kernel@lists.infradead.org Cc: Zhi Li , Shawn Guo , a.zummo@towertech.it, "Frank.Li@freescale.com" , rtc-linux@googlegroups.com, "devicetree@vger.kernel.org" , linux-pm@vger.kernel.org, Dmitry Torokhov , Rob Herring , alexandre.belloni@free-electrons.com, Philipp Zabel , linux-input@vger.kernel.org, Shawn Guo Subject: [rtc-linux] Re: [PATCH v2 0/7] Change snvs rtc and poweroff to use syscon add pwrkey driver Date: Wed, 20 May 2015 07:46:18 -0700 Message-ID: <6111368.e0EOBSJsmZ@jclayton-pc> In-Reply-To: References: <1432055082-28983-1-git-send-email-Frank.Li@freescale.com> <20150520142205.GA24844@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , > > + snvs_np = of_get_parent(pdev->dev.of_node); > + if (!snvs_np) > + return -ENODEV; > + > + data->snvs = syscon_node_to_regmap(snvs_np); > + of_node_put(snvs_np); > + > + if (!data->snvs) { > + pr_err("Can't snvs syscon\n"); > + return -ENODEV; > + } > > How about change error message to " Can't snvs syscon, probably use > old dts file"? How about simply: "Cannot find snvs syscon node in devicetree." -- ~Joshua Clayton -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.