|
Lines 329-340
Link Here
|
| 329 |
static int set_use_inc(void *data) |
329 |
static int set_use_inc(void *data) |
| 330 |
{ |
330 |
{ |
| 331 |
struct IR *ir = data; |
331 |
struct IR *ir = data; |
|
|
332 |
|
| 333 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) |
| 332 |
int ret; |
334 |
int ret; |
| 333 |
|
335 |
|
| 334 |
/* lock bttv in memory while /dev/lirc is in use */ |
336 |
/* lock bttv in memory while /dev/lirc is in use */ |
| 335 |
ret = i2c_use_client(&ir->c); |
337 |
ret = i2c_use_client(&ir->c); |
| 336 |
if (ret != 0) |
338 |
if (ret != 0) |
| 337 |
return ret; |
339 |
return ret; |
|
|
340 |
#else |
| 341 |
i2c_use_client(&ir->c); |
| 342 |
#endif |
| 338 |
|
343 |
|
| 339 |
MOD_INC_USE_COUNT; |
344 |
MOD_INC_USE_COUNT; |
| 340 |
return 0; |
345 |
return 0; |