Bug #842

Fixing an issue with BKTR_GPIO_ACCESS

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

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

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 ---

History

#1 Updated by swildner over 6 years ago

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

Sascha

Also available in: Atom PDF