Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5502647ybg; Tue, 22 Oct 2019 04:20:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpWdQ0Qq6/pTX01owUy61llvDpMhWvDQ+isNfewxoL3grsGZ8l1cvbDxpcOgLZG2GsaSKV X-Received: by 2002:aa7:c498:: with SMTP id m24mr17963263edq.113.1571743228353; Tue, 22 Oct 2019 04:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571743228; cv=none; d=google.com; s=arc-20160816; b=IDfyK76289s6sciQ1dAw49QCVYry5jej1XiQgWW5l+G/R0lbyncksUUwtmLC82uNYV 6enVa2NxEGcSH7YwAthkWbbmmfSEy6yj1PZsrwMb9u5OdBWI2zz+tFlkSsidXyOpcrhV dXzndB5nyeo7emAgU0jMREAPNc3cRm5qGHFz0r9eDvbGszp+/1nf/1Z/jg36PluqoLcY PdXpVvcYKBKpE6jJccX2Y2h5NYWpGu+viLIL2Cde3d4a29VsdVdB7BdAi5yBRi3eydkK 2Sz0fsFP7mpvRrXqkOZRSB7doP3VGNe5iGwzAlzuhDXqUJPWDSUd891SpWXND/aa0hjP cdmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=sautUqUL2WhqPw4/lfUVqkT+b4PeiKhvR2Xd/8TBNww=; b=CnLTd9GMI65Yd+OCw4AzJOVheWvTjUW3jUVbtNNlYP5pVa80FmE5BnOgg1Si6j6iTG RxWsvIFLejTU5RDJa8XwhXO47hYFhcPv640zvDmC6wab5n0/cYmPL0N07QmmbHhOzEXx 7Mhp4cD76hNnA8l8y0K3AjIRyVJFxNIo6qvKBtbWhddOymr1RjOn8qI4z3Pka7aUkT2Y pJha3ku0E1X+4LfrDXZbLrPioChRb6YbxTV1mshQLzVfqUjVF42clVw9zfCYtOEsc4h5 LUQRfkJvHnQ2DcuWqbMaxNQNUqeFYzUSBdiL0c4frBB6ByKAZe95fNXJte/jx2E7F9Fq qwSw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m55si12422773edc.17.2019.10.22.04.20.03; Tue, 22 Oct 2019 04:20: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387985AbfJVHsv (ORCPT + 99 others); Tue, 22 Oct 2019 03:48:51 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44812 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729458AbfJVHsu (ORCPT ); Tue, 22 Oct 2019 03:48:50 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 1CD9D28C250 Subject: Re: [PATCH 1/2] rtc: cros-ec: remove superfluous error message To: Alexandre Belloni , linux-rtc@vger.kernel.org Cc: Benson Leung , Guenter Roeck , linux-kernel@vger.kernel.org References: <20191016201414.30934-1-alexandre.belloni@bootlin.com> From: Enric Balletbo i Serra Message-ID: <00ed2977-3627-16ca-6a01-db263534a071@collabora.com> Date: Tue, 22 Oct 2019 09:48:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191016201414.30934-1-alexandre.belloni@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On 16/10/19 22:14, Alexandre Belloni wrote: > The RTC core now has error messages in case of registration failure, there > is no need to have other messages in the drivers. > > Signed-off-by: Alexandre Belloni That makes totally sense for me. Reviewed-by: Enric Balletbo i Serra > --- > drivers/rtc/rtc-cros-ec.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/rtc/rtc-cros-ec.c b/drivers/rtc/rtc-cros-ec.c > index 6909e01936d9..da209d00731e 100644 > --- a/drivers/rtc/rtc-cros-ec.c > +++ b/drivers/rtc/rtc-cros-ec.c > @@ -351,11 +351,8 @@ static int cros_ec_rtc_probe(struct platform_device *pdev) > cros_ec_rtc->rtc = devm_rtc_device_register(&pdev->dev, DRV_NAME, > &cros_ec_rtc_ops, > THIS_MODULE); > - if (IS_ERR(cros_ec_rtc->rtc)) { > - ret = PTR_ERR(cros_ec_rtc->rtc); > - dev_err(&pdev->dev, "failed to register rtc device\n"); > - return ret; > - } > + if (IS_ERR(cros_ec_rtc->rtc)) > + return PTR_ERR(cros_ec_rtc->rtc); > > /* Get RTC events from the EC. */ > cros_ec_rtc->notifier.notifier_call = cros_ec_rtc_event; >