• Hans Verkuil's avatar
    [media] v4l2-of: fix compiler errors if CONFIG_OF is undefined · 480856f3
    Hans Verkuil authored
    You must use static inline otherwise you get these errors if CONFIG_OF is not defined:
    
    In file included from drivers/media/platform/soc_camera/soc_camera.c:39:0:
    include/media/v4l2-of.h:112:13: warning: 'v4l2_of_free_endpoint' defined but not used [-Wunused-function]
     static void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint)
                 ^
    In file included from drivers/media/platform/soc_camera/atmel-isi.c:28:0:
    include/media/v4l2-of.h:112:13: warning: 'v4l2_of_free_endpoint' defined but not used [-Wunused-function]
     static void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint)
                 ^
    In file included from drivers/media/platform/soc_camera/rcar_vin.c:36:0:
    include/media/v4l2-of.h:112:13: warning: 'v4l2_of_free_endpoint' defined but not used [-Wunused-function]
     static void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint)
                 ^
    Signed-off-by: 's avatarHans Verkuil <hans.verkuil@cisco.com>
    Acked-by: 's avatarSakari Ailus <sakari.ailus@linux.intel.com>
    Signed-off-by: 's avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    480856f3