From patchwork Tue Jan 2 09:43:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 123107 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8764958qgn; Tue, 2 Jan 2018 01:45:11 -0800 (PST) X-Google-Smtp-Source: ACJfBos1k6hI9NqGQ+ezZC0oBG/giAbyUp8u6vdJrpqB7yNni/DDu9r9NDalvm+V/SYhuVj/gQCt X-Received: by 10.84.218.8 with SMTP id q8mr43800769pli.117.1514886311293; Tue, 02 Jan 2018 01:45:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514886311; cv=none; d=google.com; s=arc-20160816; b=XIO4x4V4GymS6Mwt2Jl/fq+k+WsysZbwzyvzvCgrfPp94NKlILMAdmWOo03AtDK+YG J1smSl0YE81VyJFA3DvIeS5d0Fs2f//mGYVVQqbQnZV7vXYQ2Ltcm01hqsXHegCfImKA kKsHuMDreg2Hb8sa1sXRXsWZ/FwD8b/60+eWvQV6bv0MLZUeuuv67stMAuggO/LFVvrI VGIFWDNgP8ZHdF85wjeKW0gA9nyRUl7Dzk2rhkdQEK233sKZ+Xlrqrv+4W1oIc4xJaSA G/ggIil5Ykt+HMt/aXsQ469+EAhrUFmsjJcmc8vFhQhLroQVESHRTyw88aPdHfpRr1QE zoQQ== 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 :arc-authentication-results; bh=FuzBSRECfTnPjZ33kkWku126Ig6iwmg/A97vW1qLXcA=; b=QDdFgV/nImzkX3zRz/yxnDGcWGZlBffWd1kqObi6ok2QU15lPXTsMsOwCIlZlOvL5b /7SyTEz0/eTNKUbRenQn/xTR5apwx2XNc4/iZg8O0fGSDLFOAhTy+ktu++V8jX4bIuIm gUq8KezC/tnKqo31ZD+zngjq6izTmNH6L9wbq2rc7cHCo79yGXfhDVz7pW4o35R/qMmh 28zMbW02U+vahesSL1QJZQ5qQSetfq6POaUeyWvFsrvndKrT8yLHFtzQSLsd3KtDdPRN 0uWONQH7G/miNUGyehXshaYqTLPiNzLPR+LG6NzkpidLac0mQ7RfcwXOaksvEbw/FxuJ m3sQ== 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 x7si24181047pfd.165.2018.01.02.01.45.11; Tue, 02 Jan 2018 01:45:11 -0800 (PST) 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 S1753342AbeABJpG (ORCPT + 28 others); Tue, 2 Jan 2018 04:45:06 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:56439 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751666AbeABJpE (ORCPT ); Tue, 2 Jan 2018 04:45:04 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MQqZJ-1eM6XQ289l-00Tz05; Tue, 02 Jan 2018 10:44:45 +0100 From: Arnd Bergmann To: Alessandro Zummo , Alexandre Belloni Cc: Arnd Bergmann , Patrick Bruenn , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: mxc_v2: remove __exit annotation Date: Tue, 2 Jan 2018 10:43:33 +0100 Message-Id: <20180102094443.3246258-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:7A18q497fu4Sl8PX0cd7R8AdO7m5mAuUDMfH/dFPMRJySctHUIJ wwV74JYuzV+xgH7Av+rvZeWWUI4+ZHZWW2LwIr9T2x6cu0qt2rjgfPmvUudg9CsqmLwkhke xESu3xF3YX33/l+0nSCxQcHpk8Y1Ev6GfNOZDipq+/G8pfzI20M4YAqOz3QRWgZKJ883hsD efIxWdK3f3T7K0KMT4a/A== X-UI-Out-Filterresults: notjunk:1; V01:K0:jGhpcZdLN94=:+I31RFsuZ6kHsGp1L3GBlC xKhimgTCsMS3XxCgWfODgT8SIo9TOreXVSvSgCQyxS+ne0o6cdhRlfyZPbOkF2j2MMPT6R/Hu cS5+GBggQAEqJuXig7GHdc4CMa6+yURIxdUofNLhsUZso4RrHaKgmKsnClPUdXabOfx7vMYvb cEbgQv9MqN2ifsKFvQDmsW0/sPHukHUDSQuCEtRVvxnqw1EGwSfDy9Ose425CvO+pH5Jc2K4F chqnQwugIbZpZaPB9b1PDY0hpv4mTrxk7/v9PbHPy84dd6qMdifsksJXcIwN+7GDvJiAbsb8a pJErQRqtE1GwKm2HwR/K44+GVoglHh4fmL96pCFePOICozA8+Qjx0/OPie51uDoCNAK4slCKn jmrtyuREbjv+9oVqA364tos+eystpJfR/ZZURHUAGUo6Ca5KZx16e11h8W2edqUPtuSpmyMoJ nNoJq2SkjV2efSJ+0R8o106ZLgebZpwuUasEZAt3Kl3GNJ3VgNWRmKU2VtS5XLLDe6AdNeA6I CcGj4Ljx+5zssguTqoMA4B+flK8o5H0KCKAApA4/1rkfObH+c5qOPFCMvvnvhoQhNlYighukF 5JAYq0rPP5TYQ6VNtSy3IiFPNFJm4diwEFs69R402D+ifV4rJCj9dx5SjG8Cx41dIwKzcJuJA Ib5gR0Hi3+ZUPFcJDoC4QVkeX903879XWByc5mmgNUWyaleSWhVbfJkQagfuvB9TCN2TuQswg pdQGonjenZLK40HPO4gyyJZHg/nkQgrUxTPA5A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mxc_rtc_remove is incorrectly annotated as __exit: `mxc_rtc_remove' referenced in section `.data' of drivers/rtc/rtc-mxc_v2.o: defined in discarded section `.exit.text' of drivers/rtc/rtc-mxc_v2.o This should not be done, as devices can be dynamically bound and unbound to a driver. Fixes: 54c47014b474 ("rtc: add mxc driver for i.MX53 SRTC") Signed-off-by: Arnd Bergmann --- drivers/rtc/rtc-mxc_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c index b637095b0716..77a065e23a84 100644 --- a/drivers/rtc/rtc-mxc_v2.c +++ b/drivers/rtc/rtc-mxc_v2.c @@ -368,7 +368,7 @@ static int mxc_rtc_probe(struct platform_device *pdev) return 0; } -static int __exit mxc_rtc_remove(struct platform_device *pdev) +static int mxc_rtc_remove(struct platform_device *pdev) { struct mxc_rtc_data *pdata = platform_get_drvdata(pdev);