> -----Original Message-----
> From: Emil Medve [mailto:[email protected]]
> Sent: Thursday, January 22, 2015 8:17 PM
> To: [email protected]; [email protected]; [email protected];
> Sethi Varun-B16395
> Cc: Medve Emilian-EMMEDVE1
> Subject: [PATCH v2 1/3] iommu/fsl: Fix section mismatch
> 
> Section mismatch in reference from the variable fsl_of_pamu_driver to the
> function .init.text:fsl_pamu_probe() The variable fsl_of_pamu_driver
> references the function __init fsl_pamu_probe() If the reference is valid
> then annotate the variable with __init* or __refdata (see linux/init.h) or
> name the variable:
> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
> 
> Signed-off-by: Emil Medve <[email protected]>
> ---
> 
> v2:   Add an __init[data] instead of removing one
> 
>  drivers/iommu/fsl_pamu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c index
> 80ac68d..d478ad8 100644
> --- a/drivers/iommu/fsl_pamu.c
> +++ b/drivers/iommu/fsl_pamu.c
> @@ -1224,7 +1224,7 @@ static const struct of_device_id fsl_of_pamu_ids[]
> = {
>       {},
>  };
> 
> -static struct platform_driver fsl_of_pamu_driver = {
> +static struct platform_driver fsl_of_pamu_driver __initdata = {
>       .driver = {
>               .name = "fsl-of-pamu",
>       },
> --
> 2.2.2
Acked-by: Varun Sethi <[email protected]>
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to