media: ov772x: omit consumer ID when getting clock reference
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 6 May 2018 14:19:22 +0000 (10:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 12:57:41 +0000 (08:57 -0400)
commit89ce93fd5b75d515ca4f9df15ef1507bff47b203
tree277f8589e6c00d9dfdec86acf0b7633ab30f6be9
parent40519d545824355fff7b94cf6e58efffe2908e7d
media: ov772x: omit consumer ID when getting clock reference

Currently the ov772x driver obtains a clock with a specific consumer ID.
As there's a single clock for this driver, we could omit clock-names
property in device tree by passing NULL as a consumer ID to clk_get().

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
arch/sh/boards/mach-migor/setup.c
drivers/media/i2c/ov772x.c