DragonFly bugs List (threaded) for 2007-11
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Fixing an issue with BKTR_GPIO_ACCESS
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 ---
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]