msm: msm_bus: Add NULL pointer checks.

Bus driver is crashing due to a NULL pointer
access sent by the client. A few NULL pointer
checks have been added to protect the driver
from invalid/NULL client handle.

CRs-Fixed: 458264
Change-Id: I822ad312ba1a0c0939d97eb92ea53094d408a836
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: poondog <markj338@gmail.com>
msm: msm_bus: Explicitly clear client requests before removal

Clients can potentially leave non-zero requests before
unregistering. Such requests persist and cause instability
and severe power and performance impact.

Protect the system against such clients by explicitly
clearing the client requests before unregistration

Change-Id: I6a905b097de41af168b5f5048b682ba995b581c2
CRs-Fixed: 407057
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
Signed-off-by: poondog <markj338@gmail.com>
msm: msm_bus: Correct the return value from register-client

On failure, return 0, and not a non-zero value as that can
be interpreted as a valid client ID.

CRs-Fixed: 486328
Change-Id: I7a5b448bc398b4a4792170147a5e5317d25f8b3c
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
Signed-off-by: poondog <markj338@gmail.com>
BUILD: v069

Signed-off-by: poondog <markj338@gmail.com>
DEFCONFIG: sync with .config

Signed-off-by: poondog <markj338@gmail.com>
DEFCONFIG: support for SPRINT thx @Lens-F

Signed-off-by: poondog <markj338@gmail.com>
DEFCONFIG: clean out unused defconfigs

Signed-off-by: poondog <markj338@gmail.com>
BUILD: clone build script for sprint

Signed-off-by: poondog <markj338@gmail.com>
BUILD: make sprint defrconfig

Signed-off-by: poondog <markj338@gmail.com>
BUILD: v070

Signed-off-by: poondog <markj338@gmail.com>
BUILD: set name for sprint version

Signed-off-by: poondog <markj338@gmail.com>
msm8960_tsens: enable all thermal devices

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	drivers/thermal/msm8960_tsens.c

Conflicts:
	drivers/thermal/msm8960_tsens.c
Signed-off-by: poondog <markj338@gmail.com>
add 3-phase bricked_msm_thermal [read more]

Removed crpalmers thermal driver and adjusted m7 board instead of board-8974-hammerhead

Signed-off-by: Lens-F <tnoah12@gmail.com>

Conflicts:
	arch/arm/configs/bricked_defconfig
	arch/arm/mach-msm/lge/board-8974-hammerhead.c
	drivers/thermal/Kconfig
	drivers/thermal/Makefile
	drivers/thermal/msm_thermal.c
	include/linux/msm_thermal.h
Signed-off-by: poondog <markj338@gmail.com>
thermal: fix incompatibilies caused by file renaming

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	drivers/thermal/Makefile
Signed-off-by: poondog <markj338@gmail.com>
kbuild: drop cpuinit/cpuexit checks in modpost

With the removal of cpuinit/cpuexit we no longer need to
do section mismatch checks on these sections.

Drop it from modpost.

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	scripts/mod/modpost.c
Signed-off-by: poondog <markj338@gmail.com>
THERMAL: we don't need to be adding lines in defconfig just for this one line
Since there is not OC and this will always be the max freq, hardcode it

Signed-off-by: poondog <markj338@gmail.com>
DEFCONFIG: support BRICKED_THERMAL

Signed-off-by: poondog <markj338@gmail.com>
BUILD: v071

Signed-off-by: poondog <markj338@gmail.com>
DEFCONFIG: support more TCP algorithms

Signed-off-by: poondog <markj338@gmail.com>
THERMAL: tune to keep the m7 cool

Signed-off-by: poondog <markj338@gmail.com>