author | Archit Taneja <archit@ti.com> | |
Wed, 5 Jun 2013 11:03:54 +0000 (16:33 +0530) | ||
committer | Archit Taneja <archit@ti.com> | |
Wed, 5 Jun 2013 11:04:52 +0000 (16:34 +0530) | ||
commit | 5923e2ed65d2829718c65299bc3d60360295592a | |
tree | b0951b93bb4a402de6d624ebd75cf44291d13fca | tree | snapshot (tar.xz tar.gz zip) |
parent | 7250753a7153133a0c3750f4a6f0670000bf4d8c | commit | diff |
omapdss: TFCS panel: Check for successful TLC driver registration before using it
The TFCS panel driver internally uses the TLC brightness controller/gpio chip
to configure the panel. The TLC i2c driver is registered first following the
registration of the omapdss TFCS panel driver.
Currently, the TFCS panel driver can regsiter successfully even if the TLC
driver isn't probed successfully. Add a check in the TFCS driver probe if the
TLC i2c client device has a valid driver attached to it.
This removes the crash seen on Vayu evm when the LCD daughter card isn't
connected to the main Vayu CPU board.
Signed-off-by: Archit Taneja <archit@ti.com>
The TFCS panel driver internally uses the TLC brightness controller/gpio chip
to configure the panel. The TLC i2c driver is registered first following the
registration of the omapdss TFCS panel driver.
Currently, the TFCS panel driver can regsiter successfully even if the TLC
driver isn't probed successfully. Add a check in the TFCS driver probe if the
TLC i2c client device has a valid driver attached to it.
This removes the crash seen on Vayu evm when the LCD daughter card isn't
connected to the main Vayu CPU board.
Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/displays/panel-tfcs9700.c | diff | blob | history |