diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-03-30 02:45:55 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-04-25 08:18:36 -0400 |
commit | 60d920d32ca40660e382cf9ccbc236599a49e607 (patch) | |
tree | 4978a71e5613b6551b03c1fe335d0bedfa233645 /drivers/mtd/nand | |
parent | 210a2c876fe02c9440569c9282af43e7a85562e3 (diff) |
mtd: nand: denali_dt: remove dma-mask DT property
The driver sets appropriate DMA mask. Delete the "dma-mask" DT
property. See [1] for negative comments for this binding.
[1] https://lkml.org/lkml/2016/2/8/57
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
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"); |