lkml.org 
[lkml]   [2012]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ifdef only module
On 08/25/2012 08:50 PM, James wrote:

> I want to only run code if a module is being built.
>
> drivers/media/video/cx25840/cx25840-core.c: 394
> If it is built into kernel it causes a timeout because it relies on udev which is not initialized yet.
> The code is only needed to provide analog reception.
> --



#ifdef MODULE
<that code>
#endif


--
~Randy


\
 
 \ /
  Last update: 2012-08-26 17:41    [W:0.034 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site