add modem notifier

N/A
(cherry picked from commit 8b89399514348b6e7fba04a08d89a9e96b1d0739)

Conflicts:
	arch/arm/mach-msm/modem-8960.c

Change-Id: Ida8008c7cc6a54e933afe88bc59b7402e8a80eef
try fix cant load modem
merge from miuiv5

Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
msm: rpc: invalidate data structures during close

When device powers down, RPC Router close can get called from both the
reboot notifier and from the platform driver remove resulting in an
access-after-free bug.

Invalidate internal data structures and check for NULL to gracefully
handle multiple close operations.

CRs-Fixed: 394129
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
(cherry picked from commit e201a31d51b79b3fb30966edea877666b217f6fb)

Change-Id: I883e9c58742b25c202ca36951df761667172dfa0
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
Reviewed-on: http://git.xiaomi.com:8660/6958
Reviewed-by: <linghuagu@gmail.com>
Tested-by: <linghuagu@gmail.com>