@@ -10,7 +10,6 @@
#include <linux/bitops.h>
#include <linux/mtd/rawnand.h>
#include <linux/types.h>
-#include <reset.h>
#define DEVICE_RESET 0x0
#define DEVICE_RESET__BANK(bank) BIT(bank)
@@ -316,7 +315,6 @@ struct denali_nand_info {
void (*host_write)(struct denali_nand_info *denali, u32 addr, u32 data);
void (*setup_dma)(struct denali_nand_info *denali, dma_addr_t dma_addr,
int page, int write);
- struct reset_ctl_bulk resets;
};
#define DENALI_CAP_HW_ECC_FIXUP BIT(0)
@@ -6,6 +6,7 @@
#include <clk.h>
#include <dm.h>
+#include <reset.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/printk.h>
@@ -63,6 +64,7 @@ static int denali_dt_probe(struct udevice *dev)
struct denali_nand_info *denali = dev_get_priv(dev);
const struct denali_dt_data *data;
struct clk clk, clk_x, clk_ecc;
+ struct reset_ctl_bulk resets;
struct resource res;
int ret;
@@ -133,11 +135,11 @@ static int denali_dt_probe(struct udevice *dev)
denali->clk_x_rate = 200000000;
}
- ret = reset_get_bulk(dev, &denali->resets);
+ ret = reset_get_bulk(dev, &resets);
if (ret)
dev_warn(dev, "Can't get reset: %d\n", ret);
else
- reset_deassert_bulk(&denali->resets);
+ reset_deassert_bulk(&resets);
return denali_init(denali);
}