Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751952AbeAPNTz (ORCPT + 1 other); Tue, 16 Jan 2018 08:19:55 -0500 Received: from mail-by2nam01on0069.outbound.protection.outlook.com ([104.47.34.69]:19424 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751457AbeAPNTv (ORCPT ); Tue, 16 Jan 2018 08:19:51 -0500 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=fail action=none header.from=nxp.com; From: Bogdan Purcareata To: , , CC: , , , , , , , , , , , , , Subject: [PATCH 5/8] staging: fsl-mc: Remove unnecessary dependency Date: Tue, 16 Jan 2018 15:19:07 +0200 Message-ID: <1516108750-24938-6-git-send-email-bogdan.purcareata@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516108750-24938-1-git-send-email-bogdan.purcareata@nxp.com> References: <1516108750-24938-1-git-send-email-bogdan.purcareata@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131605823903284985;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(1496009)(39860400002)(39380400002)(376002)(396003)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(2906002)(7416002)(305945005)(51416003)(4326008)(39060400002)(104016004)(6636002)(2950100002)(6666003)(356003)(5660300001)(105606002)(8676002)(47776003)(498600001)(50466002)(8936002)(106466001)(68736007)(50226002)(81166006)(81156014)(76176011)(8656006)(54906003)(110136005)(16586007)(48376002)(316002)(36756003)(77096006)(85426001)(53936002)(97736004)(49486002)(86362001)(2201001)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB2363;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD034;1:Fy0t27E09abWaind4iiLiCjHXWE3JD2HbwRJgyWQFVkepxBAiZPX+obvIw6eNouvaHj8kKDdqK69xrhJtZdMeC+ghil/x2UZmqoZasXBZOSIR5bwJXzPCRpOyZaw92as MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1d8493e-87e0-4f8a-bef9-08d55ce3d297 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(5600026)(4604075)(2017052603307);SRVR:CY1PR03MB2363; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB2363;3:ecd8b+6MRILlydfPsIeqsxG2NQjq6TVtldkYddb9cKtWhPeEV0/5jX88XY+5ja/glOGY/AnrrkJCyUyfCK7TY2V0Jvczqr1gDd4Q470QT+MXa+OiJ34WZCyYi/mmMdgGk5AZpejb1fRgrcf71OQjLjsFP6mffxl1V+1sQENERdEW4PRAvxJGqRC6kReYot71d9TJ3IAzhqZF0URX3jxXZ/skjmRMGyIcgRDmlvc7nWO5lPhGR9SD54L6whhBCWfDn/jQsCbSp4mNlSGE+Em1r3q2v3JhdC0i4uuq7OohxthZQOXegQPaSI/VidSkEdPeTOJpKtBAwkbzELgmY2NLWuqIz0p3ySkdtXwgmnRT9bE=;25:JXsSjSPB9gcZKO9qLpvzysxv6ohhcjiEPgEv0S3SSF/1s/BJqYnxv4r7krXfy0cFsTPg35CGEizt4iTKtoG9EhOzcYLhWDUFOcRYfmPUlItNQl81Z0z+sYeFfLHCbDbRecAJRxmHVxzLB/DJrokOCaDKl+94vX6KuHmtI8TeF56Lnqz4FcrXl3zQMsKDNj88+t7FtyBSla8ESXDszItLHLh6JBuI+QljAmyVOYQg97kFQz6f6eJuJgidFMjgB2s5MFavLv4dJSwoU1xl0HBitID1D0wDmPG/JIGHoWnqCD+a6Lvk1lEiC8OFTHaaYB8K6vzaPU5H6AMogh21r4A3Ng== X-MS-TrafficTypeDiagnostic: CY1PR03MB2363: X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB2363;31:jgB7wR27PHQA+o/HIJoSWzDhp5erZUSlZEOtoREsvG5aylvPw2AeMR4j1CvRs9PxpxP670saI79HZHX3LatkOpTsea0qJkkbhqgDieWU4u97Zr/JJeki+yHS064arf0E58pytrGl7M4dP4gNYaqUIpMRZYC6e3y4VXe0py/rputcs9jKhQBF5ZMSxH0UVJhTdp6xIhZyuTMXgfwEgO74IkM3gBcXKFmOr37+ZK9/3+M=;4:sm1HWYQU+sA7/fXf5wxBC3fxd4CH5BY8jYXXfaDt/b6NAI7xuTQtxXnpzcJODSLBHBUPOJc9gpn0ECDKk5N8J06XmoMaoqnV/4VSwzVnvCY7bf0YOdbwXV9k8JrfQcy/qur+Tv3v/zJQtEpaFOVgSxaDZDybpfdN0K0hJPP1ZMvcHKfGbakYmkja+DPfPKQD9TEOmrfO+f31xGFxm49wl28hN8tgfUzZlpo3QJKcY8Kxz67jMbmwWGL1CDD493x3zMfQfQCJDhebwEhys15F3zGNOOiV52x87HR6vIKqhexT2D/gqqP4lJ1qTH0J2tBe X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231023)(944501161)(6055026)(6096035)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123565025)(20161123563025)(20161123561025)(20161123556025)(201708071742011);SRVR:CY1PR03MB2363;BCL:0;PCL:0;RULEID:(100000803101)(100110400095)(400006);SRVR:CY1PR03MB2363; X-Forefront-PRVS: 0554B1F54F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR03MB2363;23:Xgz7kntJnUglKMa41EyQSw+4npixj8HZV1UqUWjxd?= =?us-ascii?Q?tUivjRWzh1CSppMOY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WrNcH9kfHfkZnJddlUXOfVyldKfXOvYy5rieLnB7SRbaZgDfPMH7AcfgKUaFbJzqdeTHtVERuxeKkJx5m09UTvgxTdO3lmfIg5IJv0Y5YyT9zikfOS+7s9sGsAxo5+uIdRKdzqCG0ouGw0AxjLCkGXSaZO2a58+9UJBAEPbdGg3BoGip9dQH/y0p+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 13:19:50.0476 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1d8493e-87e0-4f8a-bef9-08d55ce3d297 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2363 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Ioana Radulescu The function that enables fsl-mc msi interrupts doesn't need to be explicitly called from the fsl-mc bus driver initialization routine. Mark it to be independently called at system init; this is in line with how things are handled by other GICv3 irqchip users. Due to this change we now have an unused cleanup function, so remove it. Signed-off-by: Ioana Radulescu Reviewed-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 5 ----- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 7 ------- drivers/staging/fsl-mc/bus/fsl-mc-private.h | 4 ---- drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 2 ++ 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c index 041d341..b9f5a56 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c @@ -647,8 +647,3 @@ int __init fsl_mc_allocator_driver_init(void) { return fsl_mc_driver_register(&fsl_mc_allocator_driver); } - -void fsl_mc_allocator_driver_exit(void) -{ - fsl_mc_driver_unregister(&fsl_mc_allocator_driver); -} diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 0d010aa..9cb08c2 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -932,15 +932,8 @@ static int __init fsl_mc_bus_driver_init(void) if (error < 0) goto error_cleanup_dprc_driver; - error = its_fsl_mc_msi_init(); - if (error < 0) - goto error_cleanup_mc_allocator; - return 0; -error_cleanup_mc_allocator: - fsl_mc_allocator_driver_exit(); - error_cleanup_dprc_driver: dprc_driver_exit(); diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-private.h b/drivers/staging/fsl-mc/bus/fsl-mc-private.h index a74186e..7e50cd4 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-private.h +++ b/drivers/staging/fsl-mc/bus/fsl-mc-private.h @@ -439,8 +439,6 @@ void dprc_driver_exit(void); int __init fsl_mc_allocator_driver_init(void); -void fsl_mc_allocator_driver_exit(void); - void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev); void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev); @@ -457,8 +455,6 @@ int fsl_mc_msi_domain_alloc_irqs(struct device *dev, void fsl_mc_msi_domain_free_irqs(struct device *dev); -int __init its_fsl_mc_msi_init(void); - int fsl_mc_find_msi_domain(struct device *mc_platform_dev, struct irq_domain **mc_msi_domain); diff --git a/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c index 097c401f..506fce1 100644 --- a/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c +++ b/drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c @@ -97,3 +97,5 @@ int __init its_fsl_mc_msi_init(void) return 0; } + +early_initcall(its_fsl_mc_msi_init); -- 2.7.4