GKI: msm: camera: cci: verify subdev has a devnode before assignment
This checks the subdev's flags to verify it has a devnode before
attempting to assign the fops. If there is no devnode, then the
assignment fails which leads to a module init failure and ultimately
preventing the device from booting.
Test: boot redfin, verify basic camera functionality
Bug: 167966902
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I17f9823de81e867f5c4bf053e539406115733f1e
Signed-off-by: timothywang <timothywang@google.com>
1 file changed