RE: [PATCH 5/6] Add OF-tree support to RapidIO controller driver.
From: Zhang Wei <hidden>
Date: 2008-02-18 07:24:47
Also in:
lkml
From: Zhang Wei <hidden>
Date: 2008-02-18 07:24:47
Also in:
lkml
=20
-----Original Message----- From: Kumar Gala [mailto:galak@kernel.crashing.org]=20 =20 =20 On Feb 4, 2008, at 11:44 PM, Stephen Rothwell wrote: =20quoted
quoted
+ aw =3D *(u32 *)of_get_property(dev->node, "#address-cells", =
NULL);
quoted
quoted
+ sw =3D *(u32 *)of_get_property(dev->node, "#size-cells", NULL);What happens if either of these properties is missing?=20 Should we add __must_check to of_get_property? =20
You are right, I'll add the checking here. Thanks! Wei.