Project

General

Profile

Actions

Bug #842

closed

Fixing an issue with BKTR_GPIO_ACCESS

Added by frank over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Building a customized kernel (1.11.0-DEVELOPMENT) with Brooktree
support fails if

options BKTR_GPIO_ACCESS

is set. Please consider the patch below; I'd say it's pretty clear.

Regards
Frank Josellis

--- bktr_os.c.patch begins here ---
--- sys/dev/video/bktr/bktr_os.c.orig 2007-11-13 11:51:10.000000000 0100
++ sys/dev/video/bktr/bktr_os.c 2007-11-13 18:38:33.000000000 +0100
@ -664,9 +664,9 @
}

#ifdef BKTR_GPIO_ACCESS
- if (bktr->bigbuf == 0 && cmd != BT848_GPIO_GET_EN &&
- cmd != BT848_GPIO_SET_EN && cmd != BT848_GPIO_GET_DATA &&
- cmd != BT848_GPIO_SET_DATA) /* no frame buffer allocated (ioctl failed) /
+ if (bktr->bigbuf == 0 && ap->a_cmd != BT848_GPIO_GET_EN &&
+ ap->a_cmd != BT848_GPIO_SET_EN && ap->a_cmd != BT848_GPIO_GET_DATA &&
+ ap->a_cmd != BT848_GPIO_SET_DATA) /
no frame buffer allocated (ioctl failed) /
return( ENOMEM );
#else
if (bktr->bigbuf == 0) /
no frame buffer allocated (ioctl failed) */
--- bktr_os.c.patch ends here ---
Actions #1

Updated by swildner over 16 years ago

I've fixed it (a bit differently). Thanks for noticing.

Sascha

Actions

Also available in: Atom PDF