media: max9286: Depend on OF_GPIO
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 3 Aug 2020 09:07:06 +0000 (11:07 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 28 Aug 2020 09:03:36 +0000 (11:03 +0200)
commit8a30c017c99603b216907c2f7aa22d3afe4137c3
tree1ae6a2cdbd5f072a8be92efd4614770d3d571e04
parentbca82e3557ee1fbfbdacb09033a2d81ac76c86eb
media: max9286: Depend on OF_GPIO

The driver expects struct gpio_chip has of_node field and that field is
only there if CONFIG_OF_GPIO is defined. Fix this by changing the OF
dependency to OF_GPIO.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/Kconfig