提交 47854888 编写于 作者: J Jamie Iles 提交者: David Woodhouse

mips: tx99: remove CONFIG_MTD_PARTITIONS check

CONFIG_MTD_PARTITIONS no longer exists as MTD partitioning is always
enabled now.

Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: NJamie Iles <jamie@jamieiles.com>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 5851becb
...@@ -639,7 +639,6 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr, ...@@ -639,7 +639,6 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}; };
struct platform_device *pdev; struct platform_device *pdev;
#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition parts[2]; static struct mtd_partition parts[2];
struct physmap_flash_data pdata_part; struct physmap_flash_data pdata_part;
...@@ -658,7 +657,7 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr, ...@@ -658,7 +657,7 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr,
pdata_part.parts = parts; pdata_part.parts = parts;
pdata = &pdata_part; pdata = &pdata_part;
} }
#endif
pdev = platform_device_alloc("physmap-flash", no); pdev = platform_device_alloc("physmap-flash", no);
if (!pdev || if (!pdev ||
platform_device_add_resources(pdev, &res, 1) || platform_device_add_resources(pdev, &res, 1) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册