lkml.org 
[lkml]   [2008]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [patch] video: build fix for drivers/media/video/mt9v022.c

    * Guennadi Liakhovetski <g.liakhovetski@gmx.de> wrote:

    > Ok, right, sorry, the patch was indeed correct, just the reason for
    > the compilation breakage was not quite what you suggested. So, I'll
    > apply your putch, but please fix mt9m001.c in the same patch too - it
    > also includes gpio.h conditionally. Although, it does test the correct
    > macro.
    >
    > Actually, this CONFIG option might disappear completely in the future,
    > if we decide to switch to a module parameter instead. So that one
    > kernel can be used on systems with and without the GPIO.

    ok - untested patch for mt9m001.c attached.

    Ingo

    Index: linux/drivers/media/video/mt9m001.c
    ===================================================================
    --- linux.orig/drivers/media/video/mt9m001.c
    +++ linux/drivers/media/video/mt9m001.c
    @@ -12,15 +12,12 @@
    #include <linux/slab.h>
    #include <linux/i2c.h>
    #include <linux/log2.h>
    +#include <linux/gpio.h>

    #include <media/v4l2-common.h>
    #include <media/v4l2-chip-ident.h>
    #include <media/soc_camera.h>

    -#ifdef CONFIG_MT9M001_PCA9536_SWITCH
    -#include <asm/gpio.h>
    -#endif
    -
    /* mt9m001 i2c address 0x5d
    * The platform has to define i2c_board_info
    * and call i2c_register_board_info() */

    \
     
     \ /
      Last update: 2008-05-03 21:55    [W:0.023 / U:0.128 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site