net: ipa: remove a remoteproc dependency
authorAlex Elder <elder@linaro.org>
Wed, 20 Jan 2021 21:26:03 +0000 (15:26 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Jan 2021 04:42:46 +0000 (20:42 -0800)
commit86fdf1fc60e95ef4721de1b5f802f6a44db848c1
treed19290b6dd190fcd0af952959206ca54645f71d8
parent43e5763152e2d4679954da0d35029637f017b0b3
net: ipa: remove a remoteproc dependency

The IPA driver currently requires a DT property to be defined whose
value is the phandle for the modem subsystem.  This was needed to
look up a remoteproc structure pointer used when registering for
notifications in the original IPA notification mechanism.

Remoteproc provides a more generic SSR notifier system, and the IPA
driver switched over to it last summer, but this remoteproc phandle
dependency was not removed at that time.

Get rid of the IPA remoteproc pointer and stop requiring the phandle
be specified.

This avoids a link error (rproc_put() not defined) for certain
configurations.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa.h
drivers/net/ipa/ipa_main.c