提交 3ac6c716 编写于 作者: M Masahiro Yamada 提交者: Boris Brezillon

mtd: nand: denali: prefix detect_max_banks() with denali_

All functions in this driver are prefixed with denali_
except detect_max_banks().  Rename it for consistency.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 ee0ae6a3
...@@ -81,7 +81,7 @@ static void denali_host_write(struct denali_nand_info *denali, ...@@ -81,7 +81,7 @@ static void denali_host_write(struct denali_nand_info *denali,
* Use the configuration feature register to determine the maximum number of * Use the configuration feature register to determine the maximum number of
* banks that the hardware supports. * banks that the hardware supports.
*/ */
static void detect_max_banks(struct denali_nand_info *denali) static void denali_detect_max_banks(struct denali_nand_info *denali)
{ {
uint32_t features = ioread32(denali->reg + FEATURES); uint32_t features = ioread32(denali->reg + FEATURES);
...@@ -1115,7 +1115,7 @@ static void denali_hw_init(struct denali_nand_info *denali) ...@@ -1115,7 +1115,7 @@ static void denali_hw_init(struct denali_nand_info *denali)
* if this value is 0, just let it be. * if this value is 0, just let it be.
*/ */
denali->oob_skip_bytes = ioread32(denali->reg + SPARE_AREA_SKIP_BYTES); denali->oob_skip_bytes = ioread32(denali->reg + SPARE_AREA_SKIP_BYTES);
detect_max_banks(denali); denali_detect_max_banks(denali);
iowrite32(0x0F, denali->reg + RB_PIN_ENABLED); iowrite32(0x0F, denali->reg + RB_PIN_ENABLED);
iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE); iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册