lkml.org 
[lkml]   [2016]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 0/6] radio: Utilize the module_isa_driver macro
From
Date
On 07/18/2016 04:45 PM, William Breathitt Gray wrote:
> The module_isa_driver macro is a helper macro for ISA drivers which do
> not do anything special in module init/exit. This patchset eliminates a
> lot of ISA driver registration boilerplate code by utilizing
> module_isa_driver, which replaces module_init and module_exit.
>
> William Breathitt Gray (6):
> radio: terratec: Utilize the module_isa_driver macro
> radio: rtrack2: Utilize the module_isa_driver macro
> radio: trust: Utilize the module_isa_driver macro
> radio: zoltrix: Utilize the module_isa_driver macro
> radio: aztech: Utilize the module_isa_driver macro
> radio: aimslab: Utilize the module_isa_driver macro

Good idea, but it doesn't compile:

module_isa_driver(terratec_driver.driver, 1);

expands to:

static int __init terratec_driver.driver_init(void)
{
return isa_register_driver(&(terratec_driver.driver), 1);
}

So now the function name contains a '.' and it won't compile.

Regards,

Hans

\
 
 \ /
  Last update: 2016-07-20 13:21    [W:0.056 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site