linux/drivers/bus
Fabio Estevam 9de250999c bus: imx-weim: Take the 'status' property value into account
[ Upstream commit 33b96d2c95 ]

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.

Cc: <stable@vger.kernel.org>
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: Sasha Levin <sasha.levin@oracle.com>
History 2016-04-18 08:49:29 -04:00
..
arm-cci.c drivers: CCI: Correct use of ! and & 2014-07-30 22:58:54 -07:00
arm-ccn.c bus: arm-ccn: Fix node->XP config conversion 2015-07-03 23:02:13 -04:00
brcmstb_gisb.c devres: remove devm_request_and_ioremap() 2014-06-19 20:01:36 -07:00
imx-weim.c bus: imx-weim: Take the 'status' property value into account 2016-04-18 08:49:29 -04:00
Kconfig bus: ARM CCN: add PERF_EVENTS dependency 2014-07-24 13:18:22 +02:00
Makefile bus: ARM CCN PMU driver 2014-07-23 22:14:43 +02:00
mvebu-mbus.c bus: mvebu-mbus: fix support of MBus window 13 2015-01-29 17:40:44 -08: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-01-27 08:29:44 -08:00
omap_l3_noc.h bus: omap_l3_noc: Fix connID for OMAP4 2014-09-11 10:43:39 -07: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