diff options
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/denali_dt.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c index 9577bfde960e..b8a8284d76cd 100644 --- a/drivers/mtd/nand/denali_dt.c +++ b/drivers/mtd/nand/denali_dt.c | |||
@@ -46,8 +46,6 @@ static const struct of_device_id denali_nand_dt_ids[] = { | |||
46 | }; | 46 | }; |
47 | MODULE_DEVICE_TABLE(of, denali_nand_dt_ids); | 47 | MODULE_DEVICE_TABLE(of, denali_nand_dt_ids); |
48 | 48 | ||
49 | static u64 denali_dma_mask; | ||
50 | |||
51 | static int denali_dt_probe(struct platform_device *ofdev) | 49 | static int denali_dt_probe(struct platform_device *ofdev) |
52 | { | 50 | { |
53 | struct resource *denali_reg, *nand_data; | 51 | struct resource *denali_reg, *nand_data; |
@@ -83,13 +81,6 @@ static int denali_dt_probe(struct platform_device *ofdev) | |||
83 | if (IS_ERR(denali->flash_mem)) | 81 | if (IS_ERR(denali->flash_mem)) |
84 | return PTR_ERR(denali->flash_mem); | 82 | return PTR_ERR(denali->flash_mem); |
85 | 83 | ||
86 | if (!of_property_read_u32(ofdev->dev.of_node, | ||
87 | "dma-mask", (u32 *)&denali_dma_mask)) { | ||
88 | denali->dev->dma_mask = &denali_dma_mask; | ||
89 | } else { | ||
90 | denali->dev->dma_mask = NULL; | ||
91 | } | ||
92 | |||
93 | dt->clk = devm_clk_get(&ofdev->dev, NULL); | 84 | dt->clk = devm_clk_get(&ofdev->dev, NULL); |
94 | if (IS_ERR(dt->clk)) { | 85 | if (IS_ERR(dt->clk)) { |
95 | dev_err(&ofdev->dev, "no clk available\n"); | 86 | dev_err(&ofdev->dev, "no clk available\n"); |