net: tsec: Refactor the readout of the tbi-handle property
authorVladimir Oltean <olteanv@gmail.com>
Thu, 18 Jul 2019 21:29:53 +0000 (00:29 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 25 Jul 2019 18:13:30 +0000 (13:13 -0500)
commit29db3107a526ecd795eb236e345434bf1fa3d0d4
tree7fc8d2f329bb0f2c332d77c3355ba01bdd078aab
parentc6d07bf440bcfd39c1c61c1cd7c8ef3b059c5669
net: tsec: Refactor the readout of the tbi-handle property

The point of this patch is to eliminate the use of the locally-defined
"reg" variable (which interferes with next patch) and simplify the
fallback to the default CONFIG_SYS_TBIPA_VALUE in case "tbi-handle" is
missing.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/net/tsec.c