Re: [PWM v5 1/3] PWM: Implement a generic PWM framework

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

 



On Sun, Feb 20, 2011 at 19:38, Bill Gatliff wrote:
> On Sun, Feb 20, 2011 at 4:46 PM, Mike Frysinger <vapier.adi@xxxxxxxxx> wrote:
>>> +#ifdef MODULE
>>> +module_init(pwm_init);
>>> +module_exit(pwm_exit);
>>> +MODULE_LICENSE("GPL");
>>> +#else
>>> +postcore_initcall(pwm_init);
>>> +#endif
>>
>> i dont think you need this MODULE trickery. Âcommon code already takes
>> care of this for you, and it'd let you avoid a warning about pwm_exit
>> being unused.
>
> So the postcore_initcall() becomes equivalent to module_init() when I
> build as a module? ÂThat would make sense, but I had never thought
> about it before now...

correct, that's what linux/init.h does for people
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Gstreamer Embedded]     [Linux MMC Devel]     [U-Boot V2]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux ARM Kernel]     [Linux OMAP]     [Linux SCSI]

  Powered by Linux