aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/spectra/flash.c
diff options
context:
space:
mode:
authorChuanxiao Dong <chuanxiao.dong@intel.com>2010-12-09 10:37:30 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:30 +0000
commit734aae92f1094570357575a43005ea9f183efa99 (patch)
tree935ab25a37e73d14e46ca849dd43fd70fea4de77 /drivers/staging/spectra/flash.c
parentda3cb978c6bf60917f7b2c614a12a59570dbabfb (diff)
downloadmrst-s0i3-test-734aae92f1094570357575a43005ea9f183efa99.tar.gz
mrst-s0i3-test-734aae92f1094570357575a43005ea9f183efa99.tar.xz
mrst-s0i3-test-734aae92f1094570357575a43005ea9f183efa99.zip
spectra: Avoid running incorrect probe code
Currently there are some driver initialization logic that is not part of nand_pci_probe function. This will result in that part of driver initialization code executing even on platforms without the corresponding hardware which is always dangerous. Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com> Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Diffstat (limited to 'drivers/staging/spectra/flash.c')
-rw-r--r--drivers/staging/spectra/flash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/spectra/flash.c b/drivers/staging/spectra/flash.c
index 4e6e451cd5c..fb39c8ecf59 100644
--- a/drivers/staging/spectra/flash.c
+++ b/drivers/staging/spectra/flash.c
@@ -1258,9 +1258,7 @@ int GLOB_FTL_Flash_Init(void)
g_SBDCmdIndex = 0;
- GLOB_LLD_Flash_Init();
-
- status = GLOB_LLD_Read_Device_ID();
+ status = GLOB_LLD_Flash_Init();
return status;
}