Skip to content

Commit fafc0b3

Browse files
3x380VBoris Brezillon
authored andcommitted
mtd: onenand: omap2: Remove partitioning support from platform data
No platform data user setups partitioning information, so remove. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Acked-by: Roger Quadros <rogerq@ti.com> Tested-by: Tony Lindgren <tony@atomide.com> Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
1 parent 11066d4 commit fafc0b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/mtd/onenand/omap2.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ static int omap2_onenand_probe(struct platform_device *pdev)
703703
if ((r = onenand_scan(&c->mtd, 1)) < 0)
704704
goto err_release_dma;
705705

706-
r = mtd_device_register(&c->mtd, pdata ? pdata->parts : NULL,
707-
pdata ? pdata->nr_parts : 0);
706+
r = mtd_device_register(&c->mtd, NULL, 0);
708707
if (r)
709708
goto err_release_onenand;
710709

0 commit comments

Comments
 (0)