1 From b2e5cfb43faf26517d191de65121f1a40166340f Mon Sep 17 00:00:00 2001
2 From: Thierry Reding <treding@nvidia.com>
3 Date: Mon, 15 Feb 2016 14:22:23 +0100
4 Subject: [PATCH 156/226] staging: fsl-mc: Avoid section mismatch
6 The fsl_mc_allocator_driver_exit() function is marked __exit, but is
7 called by the error handling code in fsl_mc_allocator_driver_init().
8 This results in a section mismatch, which in turn could lead to
11 Remove the __exit annotation to fix this.
13 Cc: J. German Rivera <German.Rivera@freescale.com>
14 Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 Signed-off-by: Thierry Reding <treding@nvidia.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 drivers/staging/fsl-mc/bus/mc-allocator.c | 2 +-
19 drivers/staging/fsl-mc/include/mc-private.h | 2 +-
20 2 files changed, 2 insertions(+), 2 deletions(-)
22 --- a/drivers/staging/fsl-mc/bus/mc-allocator.c
23 +++ b/drivers/staging/fsl-mc/bus/mc-allocator.c
24 @@ -756,7 +756,7 @@ int __init fsl_mc_allocator_driver_init(
25 return fsl_mc_driver_register(&fsl_mc_allocator_driver);
28 -void __exit fsl_mc_allocator_driver_exit(void)
29 +void fsl_mc_allocator_driver_exit(void)
31 fsl_mc_driver_unregister(&fsl_mc_allocator_driver);
33 --- a/drivers/staging/fsl-mc/include/mc-private.h
34 +++ b/drivers/staging/fsl-mc/include/mc-private.h
35 @@ -123,7 +123,7 @@ void dprc_driver_exit(void);
37 int __init fsl_mc_allocator_driver_init(void);
39 -void __exit fsl_mc_allocator_driver_exit(void);
40 +void fsl_mc_allocator_driver_exit(void);
42 int __must_check fsl_mc_resource_allocate(struct fsl_mc_bus *mc_bus,
43 enum fsl_mc_pool_type pool_type,