net: ipa: clean up interconnect initialization
authorAlex Elder <elder@linaro.org>
Fri, 15 Jan 2021 12:50:49 +0000 (06:50 -0600)
committerJakub Kicinski <kuba@kernel.org>
Mon, 18 Jan 2021 19:51:06 +0000 (11:51 -0800)
commit10d0d3970187551645c7ab363e8c9d29e2122088
tree78baeea31836739bbea2d491cbc1a1a2f1179a31
parente938d7ef92c38f43bbb6de03e8399f6f821d217b
net: ipa: clean up interconnect initialization

Pass an the address of an IPA interconnect structure and its
configuration data to ipa_interconnect_init_one() and have that
function initialize all the structure's fields.  Change the function
to simply return an error code.

Introduce ipa_interconnect_exit_one() to encapsulate the cleanup of
an IPA interconnect structure.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_clock.c