diff options
author | Yong Wang <yong.y.wang@linux.intel.com> | 2010-11-17 22:08:28 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-17 13:14:14 -0800 |
commit | 6f5a416216fe2c39171326897e074d417df1082b (patch) | |
tree | 8bb220abd65cb00c3d15a7f692b677bac6612736 /drivers/staging/spectra/flash.c | |
parent | 237a1a1aef91ab654988cb459d783ac0ee09d2ea (diff) | |
download | op-kernel-dev-6f5a416216fe2c39171326897e074d417df1082b.zip op-kernel-dev-6f5a416216fe2c39171326897e074d417df1082b.tar.gz |
staging: spectra: move all init logic into nand_pci_probe
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/spectra/flash.c')
-rw-r--r-- | drivers/staging/spectra/flash.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/spectra/flash.c b/drivers/staging/spectra/flash.c index 4e6e451..fb39c8e 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; } |