Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp154944pxb; Thu, 14 Jan 2021 02:26:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU0LeqBYWZsQ3JBEN/IJmJElILD0z4kYYgM1IYxnKxZxiKHDixpTahvH2crgE9thyakkKx X-Received: by 2002:aa7:dd05:: with SMTP id i5mr5205726edv.223.1610619965811; Thu, 14 Jan 2021 02:26:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610619965; cv=none; d=google.com; s=arc-20160816; b=elCtitGUTYJ9z5fBRLHmFj+UXzxXj/T6XFMik6pDTwJ6HWuaPPzyKYL0e80mym855u 7Tx4k04IzXCa1wD/Hsim030ILKnURJHBJDrZdm1K0rBXv5BJpg7FO6kTqfPBJDfS30N+ MWdVkrcQ/frGIgvGLlBYz9QE9HjQ3Cp0mEqzJuIkgytdk4GYEzi9P5P2rK/n9UZXSywD r+430s1G1kEQ9tH6HqJjnagzeK17SUiZ5v/G4TfYnwc8a4+jUwtLz0DbknmxexjMHHEm W+Prh1PH0Inl6SOFW8Y8dYcBTDNc3TpvdvN70VSMp5uuOjcCyPCml8lR/EI1uN3pMzsM ewBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kuQJlHeIpWuiXs634c2G5t39x/XMLzJOuHHOGIxib1k=; b=YwbDarGb+pYNmQrUHrndauuFihvR/zga6bqtKbcdWEkRx8E9r2wbgZqqHAv3H41GsP t82ab+Oi3gV5RowKWsM5MxvcpayNpJBZLHy4e+EIihNjU43Vx1BYFUyX37iGmTj5WutK To9KiE6e+90T/fiBFyyNMagRrYhyb5PgYDMp4ovgCRD3YpyTbFX84fza3YM8NTEHQ+TL h/wV7Ou2cAMN9Y67ChchE4iF8MavSeMMNzb0T+43EVYml2GBP6cD4ZNZjOCm7jlZBrWQ 6MNUDu4hVFZHH+smbFRrZMfAEZIIYRUul7P0q+QjLKmIjuvzTjkdSV1gl1LYJ7kQOlwd GNWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ZuNFTFgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si750129edv.388.2021.01.14.02.25.40; Thu, 14 Jan 2021 02:26:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ZuNFTFgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728629AbhANKXw (ORCPT + 99 others); Thu, 14 Jan 2021 05:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728519AbhANKXv (ORCPT ); Thu, 14 Jan 2021 05:23:51 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39F7DC061795 for ; Thu, 14 Jan 2021 02:22:27 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id h17so3851854wmq.1 for ; Thu, 14 Jan 2021 02:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kuQJlHeIpWuiXs634c2G5t39x/XMLzJOuHHOGIxib1k=; b=ZuNFTFgmeZ3uVGqeCtbEb1qyYgwTDek5nE0ZqD8PeZAiJoMcRjR4MslFEsfrFwC3og zE1KlRytS992d+G+PBShFOjgJB8eRWzxII/SYlQ0RhDVoYLtKYp/vaJJsgAi5xOBTFc9 yR7VLXozp7BhFRrfsCaPqmJ8Lcwaj2Zh1Zvn9MV3yukP74kx2XYPlLjMbU/lqwZcgxDL 1HauxgSEcAHHOpgcBX5pa7LQv1FV6eWxRxCNwhf1K2ib4RPd7OgPci+fQTLFTwobATFc lXGT4A14TY6dq115Ib/sEMvBD0D4JIaTJUETLUo51QW7s483hKQjCFqTfw/WP733gkcY 6O9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kuQJlHeIpWuiXs634c2G5t39x/XMLzJOuHHOGIxib1k=; b=Cv9HLaUkkH1CNypfxQHI14ilJT67n0lNVtB9/Ou9+HV2yxWqAnyBV31b2UOqlZCdD/ I0V7HkLRp672zf1BQekReEC6P99sjOdbqy2GHhz3P1TbTS++obn15QSPQlAA3ZYHTNQQ xfTVJviXtcDTLPXhJUQSORi+5nCExehvUuaxmIQgqBIwgb+XmMZtH1dqWSTJfjh9Osy7 rG+RnyOOE33zz9nyQNU6aekqN+JX6VtvuDRbMz2vXLlQHN+132xkmJXzvmTNHcB3rr9o 6qZpuju7rXzdEWKWyHhPlRkN7qL3vaqBNPESeUwIp+UJy49jfLPPYSyvylg7ExJKxoga lG6Q== X-Gm-Message-State: AOAM530h/3ZfairVfyy5qX1mpQhIsaMUS3ydaL/iZ0a7E3eZJBn11p9i vFmUYGmlNuDR/n8k6o8Wvc/ibg== X-Received: by 2002:a1c:f302:: with SMTP id q2mr3127800wmq.15.1610619745952; Thu, 14 Jan 2021 02:22:25 -0800 (PST) Received: from debian-brgl.home (amarseille-656-1-4-167.w90-8.abo.wanadoo.fr. [90.8.158.167]) by smtp.gmail.com with ESMTPSA id l7sm2468467wmg.41.2021.01.14.02.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 02:22:25 -0800 (PST) From: Bartosz Golaszewski To: Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Alessandro Zummo , Alexandre Belloni Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-rtc@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 3/3] rtc: s5m: check the return value of s5m8767_rtc_init_reg() Date: Thu, 14 Jan 2021 11:22:19 +0100 Message-Id: <20210114102219.23682-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20210114102219.23682-1-brgl@bgdev.pl> References: <20210114102219.23682-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This function can fail if regmap operations fail so check its return value in probe(). Signed-off-by: Bartosz Golaszewski --- drivers/rtc/rtc-s5m.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-s5m.c b/drivers/rtc/rtc-s5m.c index 858d5f0e860f..80b66f16db89 100644 --- a/drivers/rtc/rtc-s5m.c +++ b/drivers/rtc/rtc-s5m.c @@ -791,6 +791,8 @@ static int s5m_rtc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, info); ret = s5m8767_rtc_init_reg(info); + if (ret) + return ret; device_init_wakeup(&pdev->dev, 1); -- 2.29.1