Re: [PATCH 1/1] [media] davinci_vpfe: Use module_platform_driver macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sachin,

Thanks for the patch!

On Tue, Mar 5, 2013 at 5:22 PM, Sachin Kamat <sachin.kamat@xxxxxxxxxx> wrote:
> module_platform_driver() eliminates the boilerplate and simplifies
> the code.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>

Acked-by: Lad, Prabhakar <prabhakar.lad@xxxxxx>

Regards,
--Prabhakar Lad

> ---
>  .../staging/media/davinci_vpfe/vpfe_mc_capture.c   |   20 +-------------------
>  1 files changed, 1 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c b/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c
> index 7b35171..c7ae7d7 100644
> --- a/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c
> +++ b/drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c
> @@ -719,22 +719,4 @@ static struct platform_driver vpfe_driver = {
>         .remove = vpfe_remove,
>  };
>
> -/**
> - * vpfe_init : This function registers device driver
> - */
> -static __init int vpfe_init(void)
> -{
> -       /* Register driver to the kernel */
> -       return platform_driver_register(&vpfe_driver);
> -}
> -
> -/**
> - * vpfe_cleanup : This function un-registers device driver
> - */
> -static void vpfe_cleanup(void)
> -{
> -       platform_driver_unregister(&vpfe_driver);
> -}
> -
> -module_init(vpfe_init);
> -module_exit(vpfe_cleanup);
> +module_platform_driver(vpfe_driver);
> --
> 1.7.4.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux