Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab5be588 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Olof Johansson
Browse files

mtd: nand: pxa3xx: Remove unneeded ifdef CONFIG_OF



There's no need to enclose this code within idef CONFIG_OF,
because the OF framework provides no-op stubs if CONFIG_OF=n.

Cc: devicetree@vger.kernel.org
Signed-off-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent a0396b9b
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -1236,7 +1236,6 @@ static int pxa3xx_nand_remove(struct platform_device *pdev)
	return 0;
	return 0;
}
}


#ifdef CONFIG_OF
static struct of_device_id pxa3xx_nand_dt_ids[] = {
static struct of_device_id pxa3xx_nand_dt_ids[] = {
	{
	{
		.compatible = "marvell,pxa3xx-nand",
		.compatible = "marvell,pxa3xx-nand",
@@ -1284,12 +1283,6 @@ static int pxa3xx_nand_probe_dt(struct platform_device *pdev)


	return 0;
	return 0;
}
}
#else
static inline int pxa3xx_nand_probe_dt(struct platform_device *pdev)
{
	return 0;
}
#endif


static int pxa3xx_nand_probe(struct platform_device *pdev)
static int pxa3xx_nand_probe(struct platform_device *pdev)
{
{