Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1118671ybh; Sat, 14 Mar 2020 18:33:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsTuRay7T0jOYaE/fXL00i98vmIye2ePSgz0c59unL6u15WFfWEFvWR7TStZp0FBt92ICQq X-Received: by 2002:aca:cd0e:: with SMTP id d14mr12097387oig.167.1584235988999; Sat, 14 Mar 2020 18:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584235988; cv=none; d=google.com; s=arc-20160816; b=N0PHa4zlmwh69tZf5Pyaij9J4YeycVwFOTAbw8zkukAP7ItThFU6TUJwOM8ZMOne0Y V1KuWDKk3YkkdEGRWyByZAPqHn50qlQlTl5K1XbQDiCSqIi7ya3ipBRoO3ZuyCfnO7hx gCyuKek02iri/X4QKLOISsYdQRKJViyFAaiT0qg3gMTskF1ZJtGdE1uan5X2rE2+GCBy 6GPCXk/Baorrf0P7lRzw1vjMipvpxlSiEBu4Rud1Fwpd5KJDTcxj91eUc8uLHto3IVBX ejItYEkeMAI96lVyPLH7egaqdttGyIjnCCXeNw/iU3RYrfJWoJ9b0CUWW3a196H2hYpZ Ol3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=0PZCr6wplF1VyH10P6cnh4fXGzKtZ1PxqKyWzJu3/X8=; b=vgGgsYkNlOtcLEzKoqommjPZtiEWBvaAVInnUs4+MD6BbOr/c+dj4TaldF1muXgNKo K/KrhhZPqhFdANZh8csjgjgmre5maV2n50P334u8HldGoyFHmp3adtA1f0NR/TteNJkk Zml9fnlLMYB5OsvQMGDwTvYlFal6cJT3/XQyCaP8EXeUJgpw+kR2Fce7VhaLIUoS5NHp heaDRs7n8R/8/nvTc9c31NhhMlYi6aCALIQjuqBMXN8nVjj9JH7MvvZyWE76Z5VX8Cir lX62lA7pEumKPW6JHFflMhZ6ejJm98XqaPvWezRPowkjZc+4xW26Pf1uZNEJZi93gyLv SvCw== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17si6834405oic.145.2020.03.14.18.32.57; Sat, 14 Mar 2020 18:33:08 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726855AbgCOBcd (ORCPT + 99 others); Sat, 14 Mar 2020 21:32:33 -0400 Received: from inva020.nxp.com ([92.121.34.13]:60934 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgCOBcd (ORCPT ); Sat, 14 Mar 2020 21:32:33 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ABDD61A015F; Sun, 15 Mar 2020 01:54:20 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ACE841A0170; Sun, 15 Mar 2020 01:54:17 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 27880402B1; Sun, 15 Mar 2020 08:54:14 +0800 (SGT) From: Anson Huang To: a.zummo@towertech.it, alexandre.belloni@bootlin.com, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] rtc: snvs: remove redundant error message Date: Sun, 15 Mar 2020 08:47:44 +0800 Message-Id: <1584233264-26025-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC core already has error message for registration failure, no need to have error message in the driver again. Signed-off-by: Anson Huang --- drivers/rtc/rtc-snvs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index 319ed1d..36f4961 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -354,8 +354,6 @@ static int snvs_rtc_probe(struct platform_device *pdev) data->rtc->ops = &snvs_rtc_ops; data->rtc->range_max = U32_MAX; ret = rtc_register_device(data->rtc); - if (ret) - dev_err(&pdev->dev, "failed to register rtc: %d\n", ret); return ret; } -- 2.7.4