diff options
| author | Jon Hunter <[email protected]> | 2013-02-11 20:26:19 +0000 |
|---|---|---|
| committer | Samuel Ortiz <[email protected]> | 2013-02-13 23:26:28 +0000 |
| commit | 1765dbccaa5aa2db7b53dc765f0e636591876c03 (patch) | |
| tree | 48f89502b987ea01393e20754fcfb27d25ac874b /drivers/gpu/drm/omapdrm/omap_fbdev.c | |
| parent | Merge branch 'abx500-pinctrl-for-mfd' of git://git.kernel.org/pub/scm/linux/k... (diff) | |
| download | kernel-1765dbccaa5aa2db7b53dc765f0e636591876c03.tar.gz kernel-1765dbccaa5aa2db7b53dc765f0e636591876c03.zip | |
mfd: twl-core: Fix kernel panic on boot
Commit 8a6aaa3 (mfd: twl-core: Collect global variables behind one
private structure (global)) removed the variable "inuse" that is used
to determine if the device has been initialised and now use the
twl_priv structure instead. This is causing the kernel to panic on
OMAP3+ devices using the twl driver, because we try to access the
twl_priv->ready member before checking if twl_priv is initialised. Fix
this and move this test to the beginning of the twl_i2c_read/write
function because twl_get_last_module() also uses the twl_priv structure.
Signed-off-by: Jon Hunter <[email protected]>
Acked-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fbdev.c')
0 files changed, 0 insertions, 0 deletions
