KW: clock44xx_data: Initialize cpu_clkflag to 0 in omap44xx_clk_init

Initialize cpu_clkflag to 0 in omap44xx_clk_init

Change-Id: I4a98f514b205be11efd873f42103847beaf24b80
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: dpll3xxx: Verify pclk pointer is valid before using it

Check pclk pointer before using it in omap3_clkoutx2_recalc

Change-Id: Ie66cef9ff0cb852a09dc333f4c3eccc4fc8885f6
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: gpio: Return error if omap hardware mod pointer is NULL

Return error if the omap hardware mod pointer is NULL

Change-Id: Ieddbb34b0a908ecfb7887e602c5be5cc05cac204
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: mux: Initialize omap_mux pointer m to NULL

Initialize omap_mux pointer m to NULL in omap_mux_get_gpio

Change-Id: I82e334b78ff4a160ccce49a5a430cdfe2e3b1f52
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: omap_hwmod: Initializing ret to 0

Initialize ret to 0 in omap_hwmod_for_each

Change-Id: I41cd0b2269baeb9306fa6520da60c90122e2bef8
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: pm-debug: Return an error if the 'store' pointer is NULL

Return an error if the 'store' pointer is NULL in
pm_dbg_show_regs

Change-Id: Ib9cfcc525d01209945547880bb8a5888bbb55069
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: smartreflex: Check the 'mem' pointer and warn

Check the mem pointer in sr_late_init and warn if invalid
as well as move kfree to the end of the function after the
debug statement

Change-Id: I8c8420521a6d36d3560c959ef79fda7b451f7807
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: sr_device: Log an error and return if the dev_data pointer is NULL

Log an error and return if the dev_data pointer is NULL in
sr_read_efuse

Change-Id: I92ab4c5adfda339479fd116bfcb9663e26ea7117
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: voltage: Initialize all local variables to 0

Initialize all local variables to 0 in the function
vc_bypass_scale_voltage

Change-Id: Icb6c4f0705472e8aefbe1feaaf2de34f7b583bf3
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: devices: Return if the platform data pointer is NULL

Return if the platform data pointer is NULL in
omap_init_mcpdm

Change-Id: Id9db716dbd4b0ad719b5edbf9e74ae682aff4e36
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: iodmm: Verify pointers prior to dereferencing and init locals

In the function user_to_device_map
-Initialized the local w to 0
-Check the vma pointer and return if NULL
-In error condition verify that gen_pool is valid before
freeing the memory

Change-Id: I7c3fa08dcb561564cc3e45bdc2b20d404bdbb514
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: iommu: Verify the obj validity before dereferencing

In iommu_save_tlb_entries and iommu_restore_tlb_entries moved initialization
of the io table entry to after the check for the obj validity.

Change-Id: I54ba196327422269f7ee64d00db707b7fedfda73
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: iovmm: Initilaize the local err to 0

Initilaize the local err to 0 in map_iovm_area

Change-Id: I070562c89a662c95fe501d89ddea2e1af42a11e2
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: remoteproc: Move debug statement so rproc will be valid when dereferenced

Moved the debug print statement in omap_rproc_ioctl so that rproc will
be valid when derefenced in the log statement

Change-Id: Ib13c98b953d5254d5227a08631cea99a88c29cb1
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: i2c-omap: Verify the mem pointer and handle errors properly

Check the mem pointer, throw warning, and return if NULL in omap_i2c_remove.

Change-Id: Ied717938edb25f366eba712bbdf151dcce144f12
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: omap4-keypad: Fix probe to return appropriate error on NULL mem region

In omap4_keypad_probe set the error value if the request mem region
is NULL instead of returning.  This will allow the error to be passed back
and probe to call the exit label for failure

Change-Id: I4af0879c1f82babfdad0e73dcfffb15097c56f12
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: syntm12xx: Initialization of local arrays and variables

Fixes to initialize the local data arrays to 0 and
initialize local function variables.

Change-Id: I89ac3a745a9ecacf2d80008552f5599cce0ab9ee
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: omap_s3d_overlay: Initialize r to 0

Initialize r to 0 in enable_overlays

Change-Id: Ibd7c3aa112d652e4a36a56c67432d2fb36e852d0
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: omap_wb: Check the mgr pointer before dereferencing

Check the mgr pointer in omap_setup_wb to verify it is
valid before dereferencing

Change-Id: I82ed08c04ae7dff6e085c85b1c06eea4b66978e1
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
KW: twl-core: Initialize the temp value to 0

In twl_probe initialize the temp value to 0

Change-Id: I0a0ef9f2687e8c55e5a6a6c87bcf1998a8dc19b6
Signed-off-by: Axel Haslam <axelhaslam@ti.com>