Re: [PATCH] v4l2-of: fix compiler errors if CONFIG_OF is undefined

2015-04-28 Thread Sakari Ailus
Hi Hans, On Tue, Apr 28, 2015 at 08:41:00AM +0200, Hans Verkuil wrote: > 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_fre

[PATCH] v4l2-of: fix compiler errors if CONFIG_OF is undefined

2015-04-27 Thread Hans Verkuil
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_en