Skip to content

Commit

Permalink
x86/mrst: Quiet sparse noise about plain integer as NULL pointer
Browse files Browse the repository at this point in the history
The second parameter to intel_scu_notifier_post is a void *, not
an integer.

This quiets the sparse noise:

 arch/x86/platform/mrst/mrst.c:808:48: warning: Using plain integer as NULL pointer
 arch/x86/platform/mrst/mrst.c:817:43: warning: Using plain integer as NULL pointer

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Link: http://lkml.kernel.org/r/201204241500.53685.hartleys@visionengravers.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
H Hartley Sweeten authored and Ingo Molnar committed Apr 25, 2012
1 parent cd32b16 commit d0d3bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/platform/mrst/mrst.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ void intel_scu_devices_create(void)
} else
i2c_register_board_info(i2c_bus[i], i2c_devs[i], 1);
}
intel_scu_notifier_post(SCU_AVAILABLE, 0L);
intel_scu_notifier_post(SCU_AVAILABLE, NULL);
}
EXPORT_SYMBOL_GPL(intel_scu_devices_create);

Expand All @@ -814,7 +814,7 @@ void intel_scu_devices_destroy(void)
{
int i;

intel_scu_notifier_post(SCU_DOWN, 0L);
intel_scu_notifier_post(SCU_DOWN, NULL);

for (i = 0; i < ipc_next_dev; i++)
platform_device_del(ipc_devs[i]);
Expand Down

0 comments on commit d0d3bc6

Please sign in to comment.