linux/drivers/media/pci/ngene
Daniel Scheller e39b8e945e media: ngene: check for CXD2099AR presence before attaching
Currently, if there's no CXD2099AR attached to any expansion connector of
the ngene hardware, it will complain with this on every module load:

    cxd2099 1-0040: No CXD2099AR detected at 0x40
    cxd2099: probe of 1-0040 failed with error -5
    ngene 0000:02:00.0: CXD2099AR attach failed

This happens due to the logic assuming such hardware is always there and
blindly tries to attach the cxd2099 I2C driver. Rather add a probe
function (in ngene-cards.c with a prototype in ngene.h) to check for
the existence of such hardware before probing, and don't try further if
no CXD2099 was found.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-06 11:15:01 -05:00
..
Kconfig media: ngene: add support for DuoFlex S2 V4 addon modules 2018-03-06 11:12:15 -05:00
Makefile media: cxd2099: move driver out of staging into dvb-frontends 2018-03-06 08:50:18 -05:00
ngene-cards.c media: ngene: check for CXD2099AR presence before attaching 2018-03-06 11:15:01 -05:00
ngene-core.c media: ngene: check for CXD2099AR presence before attaching 2018-03-06 11:15:01 -05:00
ngene-dvb.c media: ngene: convert kernellog printing from printk() to dev_*() macros 2018-03-06 10:48:43 -05:00
ngene-i2c.c media: ngene: constify i2c_algorithm structure 2017-07-20 14:59:58 -04:00
ngene.h media: ngene: check for CXD2099AR presence before attaching 2018-03-06 11:15:01 -05:00