staging: spectra: move all init logic into nand_pci_probe
commit6f5a416216fe2c39171326897e074d417df1082b
authorYong Wang <yong.y.wang@linux.intel.com>
Wed, 17 Nov 2010 14:08:28 +0000 (17 22:08 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 17 Nov 2010 21:14:14 +0000 (17 13:14 -0800)
tree8bb220abd65cb00c3d15a7f692b677bac6612736
parent237a1a1aef91ab654988cb459d783ac0ee09d2ea
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>
drivers/staging/spectra/ffsport.c
drivers/staging/spectra/ffsport.h
drivers/staging/spectra/flash.c
drivers/staging/spectra/lld_nand.c