lkml.org 
[lkml]   [2010]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] MFD: AB8500 debugfs
Hi Mattias,

I have some addtional comments:

On Mon, Sep 13, 2010 at 10:33:02AM +0200, Mattias Wallin wrote:
> +static struct platform_driver ab8500_debug_driver = {
> + .driver = {
> + .name = "ab8500-debug",
> + .owner = THIS_MODULE,
> + },
> + .probe = ab8500_debug_probe,
> + .remove = __devexit_p(ab8500_debug_remove)
> +};
> +
> +static int __init ab8500_debug_init(void)
> +{
> + return platform_driver_register(&ab8500_debug_driver);
> +}
> +
> +static void __exit ab8500_debug_exit(void)
> +{
> + platform_driver_unregister(&ab8500_debug_driver);
> +}
It seems a bit awkward to me to have this code as an actual platform driver.
Why not defining ab8500_debug_[probe|remove] in ab8500.h as no-op when
CONFIG_AB8500_DEBUG is not defined and as extern otherwise ?

Cheers,
Samuel.

--
Intel Open Source Technology Centre
http://oss.intel.com/


\
 
 \ /
  Last update: 2010-09-13 15:29    [W:0.052 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site