forked from OERV-BSP/u-boot
mtd: rawnand: atmel: atmel_pmecc_create: Remove unused code
"timing" and "timing_res_idx" are unused and not exist in Linux driver, let's remove them. Signed-off-by: Zixun LI <admin@hifiphile.com> Acked-by: Alexander Dahl <ada@thorsis.com> Reviewed-by: Eugen Hristev <eugen.hristev@linaro.org>
This commit is contained in:
@@ -820,8 +820,7 @@ EXPORT_SYMBOL_GPL(atmel_pmecc_wait_rdy);
|
||||
static struct atmel_pmecc *
|
||||
atmel_pmecc_create(struct udevice *dev,
|
||||
const struct atmel_pmecc_caps *caps,
|
||||
int pmecc_res_idx, int errloc_res_idx,
|
||||
int timing_res_idx)
|
||||
int pmecc_res_idx, int errloc_res_idx)
|
||||
{
|
||||
struct atmel_pmecc *pmecc;
|
||||
struct resource res;
|
||||
@@ -839,8 +838,6 @@ atmel_pmecc_create(struct udevice *dev,
|
||||
ofnode_read_resource(dev->node_, 1, &res);
|
||||
pmecc->regs.errloc = (void *)res.start;
|
||||
|
||||
pmecc->regs.timing = 0;
|
||||
|
||||
/* pmecc data setup time */
|
||||
if (caps->clk_ctrl)
|
||||
writel(PMECC_CLK_133MHZ, pmecc->regs.base + ATMEL_PMECC_CLK);
|
||||
@@ -952,7 +949,7 @@ static int atmel_pmecc_probe(struct udevice *dev)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
pmecc = atmel_pmecc_create(dev, caps, 0, 1, 2);
|
||||
pmecc = atmel_pmecc_create(dev, caps, 0, 1);
|
||||
if (IS_ERR(pmecc))
|
||||
return PTR_ERR(pmecc);
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ struct atmel_pmecc {
|
||||
struct {
|
||||
void __iomem *base;
|
||||
void __iomem *errloc;
|
||||
void __iomem *timing;
|
||||
} regs;
|
||||
|
||||
/* Mutex used for pmecc enable/disable */
|
||||
|
||||
Reference in New Issue
Block a user