From patchwork Tue Apr 19 09:00:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia Hongtao X-Patchwork-Id: 8878211 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7B824BF29F for ; Tue, 19 Apr 2016 09:09:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1E6820145 for ; Tue, 19 Apr 2016 09:09:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07CC82011B for ; Tue, 19 Apr 2016 09:09:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752657AbcDSJJ1 (ORCPT ); Tue, 19 Apr 2016 05:09:27 -0400 Received: from mail-bn1bon0079.outbound.protection.outlook.com ([157.56.111.79]:37920 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752387AbcDSJJZ (ORCPT ); Tue, 19 Apr 2016 05:09:25 -0400 X-Greylist: delayed 88070 seconds by postgrey-1.27 at vger.kernel.org; Tue, 19 Apr 2016 05:09:25 EDT Received: from BLUPR0301CA0008.namprd03.prod.outlook.com (10.162.113.146) by CY1PR0301MB0715.namprd03.prod.outlook.com (10.160.159.145) with Microsoft SMTP Server (TLS) id 15.1.453.26; Tue, 19 Apr 2016 09:09:22 +0000 Received: from BL2FFO11OLC010.protection.gbl (2a01:111:f400:7c09::167) by BLUPR0301CA0008.outlook.office365.com (2a01:111:e400:5259::18) with Microsoft SMTP Server (TLS) id 15.1.466.19 via Frontend Transport; Tue, 19 Apr 2016 09:09:22 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11OLC010.mail.protection.outlook.com (10.173.160.154) with Microsoft SMTP Server (TLS) id 15.1.472.8 via Frontend Transport; Tue, 19 Apr 2016 09:09:21 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u3J99IUq026089; Tue, 19 Apr 2016 02:09:18 -0700 From: Jia Hongtao To: , CC: , , , Subject: [PATCH V3 1/2] cpufreq: qoriq: Remove __exit macro from .exit callback Date: Tue, 19 Apr 2016 17:00:06 +0800 Message-ID: <1461056407-22542-1-git-send-email-hongtao.jia@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131055305624043054; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(50226001)(92566002)(87936001)(19580395003)(36756003)(4326007)(11100500001)(19580405001)(77096005)(47776003)(33646002)(1220700001)(85426001)(81166005)(2906002)(229853001)(5003940100001)(189998001)(5001770100001)(48376002)(586003)(6806005)(106466001)(104016004)(1096002)(50466002)(5008740100001)(50986999)(86362001)(105606002)(7059030)(142923001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0715; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC010; 1:UzqPqAdhU2bdyidm0K0ugqBYeUM7nr4GVQ4H5PUlQPRIxYZEKnIITr3EVUXVfyDukStGZ5RK6PQToPPPkcHKE+oBbZIkdHmmUHSbL0Prufl7zyb7pqkcXOHaDTz9eltGy9rI41xeG01bM0Bxo5Q1g7EpZynHHFUrLNpWeV9giWaDvEr1aC87FemtLjwfRiY8OhkLjzieqwivsX9MekfiwDdzaxPGFm9FOpBQmamaFeO25z9QOzAxV1cNlpIGXjK+7247+heiNFRCTm7piewu28kkeXP07broL1Rn78vCrsOQTF1rvK693dHg0dSYgb43Od3034qLnV5MqHwaxNV6b82jQD4zuj+0RTmKON9UKs36Ua/IJeDTIyZLVlr28gdW5KrfhhF5ncKNZsKxD+ruRHr9BX9/z1KZmDSRhST7Kbut8crNDo7lAziNVpAdjyJ6XIplLIMBYQSDGRxKD6CiS4Vfi4O3wSqWr4wpV0gLal5BKlpathibrvtWyB24+GmTJ5xUZnlogXBrPDZwz3+vP5ZbcV1CGyPYy4cJ86ZlMP659OmtMuFuBIcfpeO0pe0F9WTdHndwSxKVrM77jO2t8CEXSWz1XWwYJ0YJsAutihoCiPHYHAvI9qglk6pSW5WvE1oUBqmFYPljH3o+Zi+/vpxIf2uDrAaCy2oC3FvaeCcv9wGtFc1GnojRm4/FFlxB MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 1e4e7a61-28e8-41e9-5d1f-08d368324c1b X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0715; 2:eYcjVcLRh415VowaGWoL/3DQdYuNrWsamd1WQBPYseN+RLlC9AexNtnMK8Ay6uZaukGuml0XAknAyctHzYLadPsu+M2tIGnRIUNBHweK0pZZQNQBV4kMFnK/FNU325gjizJY1pMSvM2/n7DF/J92pIC5LFDHNy7m8c9ze+Pb811ZeZcKIvkJPgDlQ5hriMf3; 3:xCnxHfjcMRJBtPFUQHP4R4CgZFR6rse6SDJbCrYtJ0QQsqiC55lyWHZrapED/yaG8R5c9VdcBX+O+1ilalM8Ri01yl427oB8SZb3VVrmzL6vhoo2TTmScM+hD8WQymmT8aHILYpWwdpqfZtl4SXCsAn6sva7kqT8Vf/SdRJOQ5vvo4mesfkLKcrUTqFkpYgZxdovqwCu5RwnOQiDNM+XeKGuLbkZxIn3/l3JGkGUyYY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0715; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0715; 25:7FE95XtFRzsy7NaBxXKZi5LZbGPhcb2NmRZNul/Lg4Zfty8kWIuTBPjBPQK6OoOL3fIScvM8KVdLozvoZbXfuDo0y8B/ND3P/nxE0yXV3eLEVXxqEw3bQKjK47MDF+5sC9cwbUmp0c8o/grF+FfN63Kz6b4gymDhymR35jLGlSOZPzfhi9JSt46BKf8H0GFX92s29kLegs/Ui52xiqdzIlQsGRSQC6S+m3hLZWnYXflwSW/kcId19qilzIrKuUye3E2FHsKSYFevjrXtLpDqFE1kfbZXILIYuUPDKCriLlULDjT3CAMwyxlZg8jxALJrTCT9VmeACLUH19uah/l8zVhkqgHDT58CI2MuKXd7n94Q5aBbvsVIs+BuHc01oHZRmureWdEQ0JkNAx2PN1Y5jRFNXcWNTkgjFW6gNerHOufLBeHkQnHWubiYFzwDbnzi6TKy5sekQEAuV63D+pOq2qY8W3f5/hQF4v6ENh6Sfu0/dGSMdN3qDtYF5r7A0ky0qMl9BmhilLWAV5Tac7CM7A3AQuU8+/DOgwDrM5J+P9AOeBzyl/UHHG0Sa33guqylqVTk7oMPl1vR0KYkvjHmhdL5Dbl4fQqo3gdtuqZlEE6xKhZ46Fh3uoHKe70mTixFPlTHketLFz1nmASca5WiWKWNZJCa3TSXTtKxb7W4W8U= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13017025)(13018025)(13024025)(13015025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY1PR0301MB0715; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0715; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0715; 4:PZeG7rnix75sbAqwoGJ8hFHbwX71b3tOUr52FhKH/Bs0PSfOGigz6V6EXENPMTQeqiS7euch5vp55bSFcKNVhzK2frmNWvswrjfus0LbZXCFER/2pneK5/uJ/xLxHf6A3pSRW5bj5/MDZ6m+XmJbIkHlvEhTOVTl1GFA/nOMFrT9Dc9llMEo6nKHFa4L+QX0evNyoCSzDSnefSNtSSol91zVrzvsWmdY31Al8+b1eh3GBj0m1yRFHyYBcsoYcWyjXnvIdyOv7eHPYP9GcOLID7RDrOCFb4jm4fdo6pFGwIM6ydFglL9rrxkfiYRqokgxrjmyTrFL0cUfZi2Rl2OofdzM9BOx1N/oSUNhwLmgumnyXVLjSEZxQNrpt5f0J9xlM0APiPVN5K/DqZnVe2fNn7uAWdPNMwhEkGAtD1sn75cv5z16GFB1iek8iSLL1ZlLlsYem6oOHbu9wPQTY3ARa3g6WHKUDBpD+huvVKDQOVI= X-Forefront-PRVS: 0917DFAC67 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0715; 23:UaN9nX4T/n6alkIvvrL7K04OZoe3Pxn7rsiesAg?= =?us-ascii?Q?Ra9axAZVb/ODsZSZjx2bDilFQ+xNFz0kFJNU/cJwVqWbFPYHBSdyzNv6Gjha?= =?us-ascii?Q?TDyWZx+Z+cjrZneZogfCYeWN2Pb35UjFlSFlpAuGmmjO3+2eInu4o5iGiEI0?= =?us-ascii?Q?a7QOievMzrXOblOGrIxa/FswniPtRIApp8PyDze3K+39Vi3Ik6+9Gm9NFrhB?= =?us-ascii?Q?vRWcsPMv1V/04OqB4fpG5e27nn3S4HvJ/3M2Vwm8gngvGd87nBazzGaTuf5F?= =?us-ascii?Q?ulLUUqnZ9V/Qktei6oYKPSbhk9VOrN5urSH//NbY9aPHSDuz1X0AeK7V1ve0?= =?us-ascii?Q?0M1nUl43JnkwMWmz+pzXMWRpTYKhwQzpaGNkzoBnSkFC27vWhhz8gaK3kdWp?= =?us-ascii?Q?Rzy5ozrIIjirzzIf2YbNotTxpmhSqTe3p0TVQbUMnI+vXVRnb+3k1o7vW3vp?= =?us-ascii?Q?VhxN3eE2RLMnIN69tB5TnJGlFDriP0LflaYhMGAmX5NuMFh0LcOFg7vROaM3?= =?us-ascii?Q?FsZyM3hUDvmI4egOg52h94vVxqs+4PWgezHi6pBh+T/ZRK9qDs4JhZQVYvup?= =?us-ascii?Q?P++RTYBLuGAYG6j6HoKZR2DKZkuHUWf0PVwOvUKvrsqGVuwG3dnPJkDvCppq?= =?us-ascii?Q?B6QNahrbEjE76GFRfav4zpeukuSq2m6+G30z9qJ85uRwN1X+19JJQm9GNo7F?= =?us-ascii?Q?5szOui1NEpbqHRpDZrUVEdmGyI3A3ZIkRQYZND+hQv3+PFZBKWLDDTjFvodo?= =?us-ascii?Q?1E7IlHdn8ci/Qst+qkJdWg5Rk7Rsro1c/VKLeI/l34W25X6EvmcJerPYpi8L?= =?us-ascii?Q?Jo1pyWe9PnsU2xHNNjQ44cD0PTgP19QDFIohp9vq8nlODYETjdA3an5SrIKS?= =?us-ascii?Q?P3NSBjgqKppCPnKrLor1lScZMMXnj/6rw2mfPolQe/4fjv4/J7hVRaKqsKii?= =?us-ascii?Q?aFRkE1xu84lHYap1YNXRF6dmoK2TxMVjm9b4/6XAHNbFQfmnGgCu4Ndz78+/?= =?us-ascii?Q?y/LU0E/FWIwLOlbIVtKFUHb2QZEhoPBx+13aPunLbz0eshg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0715; 5:LMrL574UllmfbRjLN3OjjRm1wpR/znBxVDNPfqyE66v89wAyL4JJCxUiAZ1RmAXhd1GEmC9UOrsp68+f0GAMnRKaskzKK+uKWoQiI/Z/ltp81bmJul+cWioZSN8uqtCufD3JhOXITmMqWchdrS0ip2xgXu8S5k+v5jp6+RUjKHA=; 24:hFAuqLtDNR0utYxv17s3+G0KHZRakRlGIxgz3d+o2jfoY9soOHcod9zPXEW6koneg/nCWK8Bo56H4kmpmwLPBi3kmoNPRBQi4Kk+bvg3r1c= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2016 09:09:21.9209 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0715 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP .exit callback (qoriq_cpufreq_cpu_exit()) is also used during suspend. So __exit macro should be removed or the function will be discarded. Signed-off-by: Jia Hongtao Acked-by: Viresh Kumar Acked-by: Viresh Kumar --- drivers/cpufreq/qoriq-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufreq.c index b23e525..3a3fe39 100644 --- a/drivers/cpufreq/qoriq-cpufreq.c +++ b/drivers/cpufreq/qoriq-cpufreq.c @@ -301,7 +301,7 @@ err_np: return -ENODEV; } -static int __exit qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy) +static int qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy) { struct cpu_data *data = policy->driver_data; @@ -348,7 +348,7 @@ static struct cpufreq_driver qoriq_cpufreq_driver = { .name = "qoriq_cpufreq", .flags = CPUFREQ_CONST_LOOPS, .init = qoriq_cpufreq_cpu_init, - .exit = __exit_p(qoriq_cpufreq_cpu_exit), + .exit = qoriq_cpufreq_cpu_exit, .verify = cpufreq_generic_frequency_table_verify, .target_index = qoriq_cpufreq_target, .get = cpufreq_generic_get,