POWER: fix compile warnings in log_wakeup_reason
Change I81addaf420f1338255c5d0638b0d244a99d777d1 introduced compile warnings, fix these. Change-Id: I05482a5335599ab96c0a088a7d175c8d4cf1cf69 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
This commit is contained in:
parent
abcb8499ac
commit
93fd310cb6
1 changed files with 4 additions and 3 deletions
|
@ -35,7 +35,7 @@ static struct kobject *wakeup_reason;
|
||||||
static spinlock_t resume_reason_lock;
|
static spinlock_t resume_reason_lock;
|
||||||
|
|
||||||
static ssize_t reason_show(struct kobject *kobj, struct kobj_attribute *attr,
|
static ssize_t reason_show(struct kobject *kobj, struct kobj_attribute *attr,
|
||||||
const char *buf, size_t count)
|
char *buf)
|
||||||
{
|
{
|
||||||
int irq_no, buf_offset = 0;
|
int irq_no, buf_offset = 0;
|
||||||
struct irq_desc *desc;
|
struct irq_desc *desc;
|
||||||
|
@ -106,7 +106,7 @@ static struct notifier_block wakeup_reason_pm_notifier_block = {
|
||||||
/* Initializes the sysfs parameter
|
/* Initializes the sysfs parameter
|
||||||
* registers the pm_event notifier
|
* registers the pm_event notifier
|
||||||
*/
|
*/
|
||||||
void __init wakeup_reason_init(void)
|
int __init wakeup_reason_init(void)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
spin_lock_init(&resume_reason_lock);
|
spin_lock_init(&resume_reason_lock);
|
||||||
|
@ -119,7 +119,7 @@ void __init wakeup_reason_init(void)
|
||||||
if (!wakeup_reason) {
|
if (!wakeup_reason) {
|
||||||
printk(KERN_WARNING "[%s] failed to create a sysfs kobject\n",
|
printk(KERN_WARNING "[%s] failed to create a sysfs kobject\n",
|
||||||
__func__);
|
__func__);
|
||||||
return;
|
return 1;
|
||||||
}
|
}
|
||||||
retval = sysfs_create_group(wakeup_reason, &attr_group);
|
retval = sysfs_create_group(wakeup_reason, &attr_group);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
|
@ -127,6 +127,7 @@ void __init wakeup_reason_init(void)
|
||||||
printk(KERN_WARNING "[%s] failed to create a sysfs group %d\n",
|
printk(KERN_WARNING "[%s] failed to create a sysfs group %d\n",
|
||||||
__func__, retval);
|
__func__, retval);
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
late_initcall(wakeup_reason_init);
|
late_initcall(wakeup_reason_init);
|
||||||
|
|
Loading…
Add table
Reference in a new issue