mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
PM / devfreq: bw_hwmon: irq can be negative
platform_get_irq() can return a negative number, but we assign it to an unsigned integer, which can never be negative. Change the type to int here so that we can detect irq errors. Change-Id: I997063abfe5c9966f99014a099619e6bfe7aafe7 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> [avajid@codeaurora.org: made minor styling changes] Signed-off-by: Amir Vajid <avajid@codeaurora.org>
This commit is contained in:
parent
f30d9fbf4c
commit
9ff1db3cc7
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2014-2016, 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2017, 2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "bimc-bwmon: " fmt
|
||||
|
|
@ -57,7 +57,7 @@ struct bwmon {
|
|||
void __iomem *base;
|
||||
void __iomem *global_base;
|
||||
unsigned int mport;
|
||||
unsigned int irq;
|
||||
int irq;
|
||||
const struct bwmon_spec *spec;
|
||||
struct device *dev;
|
||||
struct bw_hwmon hw;
|
||||
|
|
|
|||
Loading…
Reference in a new issue