of: reserved_mem: fix cell count for memory-region property
cell count represents the number of cells following a phandle
that are relevant to the phandle. There are 0 such cells for
memory-region property, it contains phandles entirely.
Also, the function returns nothing when loop exits. Fix this
Bug
200133729
Change-Id: Iba39de7cd31ed48314689dae7219b5cbb55f6c58
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/790825
Reviewed-on: http://git-master/r/791832
(cherry picked from commit
f90484a99bdad71bf57d20d2725e7ceac1ae0d39)
Reviewed-on: http://git-master/r/
1159910
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>