ARM: mach-mxs/mx28evk: Only register devices if their GPIO requests succeeded
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 14 Sep 2011 13:20:25 +0000 (10:20 -0300)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 20 Sep 2011 07:45:09 +0000 (09:45 +0200)
commita35b91474c329ecefa793e4e7bb4103c88f4a16f
tree88aeed0fdc3806404bf2d2eed7c9bb75bdf7fd9a
parent25c038ee0d3a6599f0165f97a651d988d7afd40b
ARM: mach-mxs/mx28evk: Only register devices if their GPIO requests succeeded

Currently framebuffer and MMC devices are registered even if their associated
GPIO pins fail to be requested.

Change the logic so that the registration of such devices only occurs if their
GPIO requests succeeded.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mxs/mach-mx28evk.c