linux/drivers/bus
Fabio Estevam b7303b3829 bus: imx-weim: Take the 'status' property value into account
commit 33b96d2c95 upstream.

Currently we have an incorrect behaviour when multiple devices
are present under the weim node. For example:

&weim {
	...
	status = "okay";

	sram@0,0 {
		...
        	status = "okay";
	};

	mram@0,0 {
		...
        	status = "disabled";
    	};
};

In this case only the 'sram' device should be probed and not 'mram'.

However what happens currently is that the status variable is ignored,
causing the 'sram' device to be disabled and 'mram' to be enabled.

Change the weim_parse_dt() function to use
for_each_available_child_of_node()so that the devices marked with
'status = disabled' are not probed.

Suggested-by: Wolfgang Netbal <wolfgang.netbal@sigmatek.at>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-05-01 00:05:57 +02:00
..
arm-cci.c drivers: cci: Export CCI PMU revision 2014-02-25 19:36:17 +01:00
brcmstb_gisb.c bus: add Broadcom GISB bus arbiter timeout/error handler 2014-05-24 00:58:39 +02:00
imx-weim.c bus: imx-weim: Take the 'status' property value into account 2016-05-01 00:05:57 +02:00
Kconfig bus/arm-cci: add dependency on OF && CPU_V7 2014-06-17 17:09:35 +02:00
Makefile ARM: SoC driver changes 2014-06-02 16:35:49 -07:00
mvebu-mbus.c bus: mvebu-mbus: fix support of MBus window 13 2015-02-04 10:57:36 +00:00
omap-ocp2scp.c ARM: OMAP2+: Remove omap4 ocp2scp pdata 2013-05-30 13:09:31 -07:00
omap_l3_noc.c bus: omap_l3_noc: Correct returning IRQ_HANDLED unconditionally in the irq handler 2015-02-04 10:57:52 +00:00
omap_l3_noc.h bus: omap_l3_noc: Add AM4372 interconnect error data 2014-05-05 14:34:37 -05:00
omap_l3_smx.c drivers: bus: Move the OMAP interconnect driver to drivers/bus/ 2012-09-19 16:53:26 +02:00
omap_l3_smx.h drivers: bus: Move the OMAP interconnect driver to drivers/bus/ 2012-09-19 16:53:26 +02:00
vexpress-config.c ARM: vexpress: refine dependencies for new code 2014-05-26 21:26:52 +02:00