]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
media: mt9m111: fix fw-node refactoring
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 3 Jun 2019 20:01:55 +0000 (16:01 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 15:19:43 +0000 (11:19 -0400)
commit8d4e29a51a954b43e06d916772fa4f50b7e5bbd6
treeb58e1c43d1a85c351f23a42e02502b4631c2eff6
parentecaa3e9423dced739e317adbf3247ad43cb0b4fe
media: mt9m111: fix fw-node refactoring

In the patch refactoring the fw-node, the mt9m111 was broken for all
platform_data based platforms, which were the first aim of this
driver. Only the devicetree platform are still functional, probably
because the testing was done on these.

The result is that -EINVAL is systematically return for such platforms,
what this patch fixes.

[Sakari Ailus: Rework this to resolve a merge conflict and use dev_fwnode]

Fixes: 98480d65c48c ("media: mt9m111: allow to setup pixclk polarity")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/mt9m111.c