mmc: dw_mmc: move host->data_offset init earlier
authorJames Hogan <james.hogan@imgtec.com>
Tue, 12 Mar 2013 10:43:54 +0000 (10:43 +0000)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 16:42:53 +0000 (12:42 -0400)
commit63008768d2663723b6acea2f8739e1c8460da726
tree4138c18052ce719ee18a2bf17221a72a6adb6378
parente6f34e2fd3a7c6bc4893c08583d55599ac15eb9d
mmc: dw_mmc: move host->data_offset init earlier

host->data_offset is initialised at the end of the probe function
depending on the VERID register, and is used for PIO operations. Move
this initialisation earlier, before IRQs or slots are initialised, to be
sure that PIO won't occur prior to host->data_offset being initialised.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c