Port-i386 archive

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

Re: New ACPI power resource code for testing



> Define acpi_power.c as a needs-flag (or needs-count) file, and include
> the generated header file.  Then you can use #if <foo> preprocessor
> directives to determine if you have the power device configured.  If  
> yes, then feel free to call the initialization code and to register the  
> consumers;  if not defined, but you find that you want to register a  
> consumer, report it using aprint_error_dev()

New code should not use needs-flag.  It's module-unfriendly. :)

Masao


Home | Main Index | Thread Index | Old Index