Skip to content

Commit

Permalink
mtd: nand: pxa3xx: Remove unneeded ifdef CONFIG_OF
Browse files Browse the repository at this point in the history
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: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Ezequiel Garcia authored and Olof Johansson committed Sep 17, 2013
1 parent a0396b9 commit ab5be58
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,6 @@ static int pxa3xx_nand_remove(struct platform_device *pdev)
return 0;
}

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

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)
{
Expand Down

0 comments on commit ab5be58

Please sign in to comment.