Commit b29336c0 authored by Mukesh Ojha's avatar Mukesh Ojha Committed by Michael Ellerman

powerpc/powernv/opal-dump : Use IRQ_HANDLED instead of numbers in interrupt handler

Fixes: 8034f715 ("powernv/opal-dump: Convert to irq domain")

Converts all the return explicit number to a more proper IRQ_HANDLED,
which looks proper incase of interrupt handler returning case.

Here, It also removes error message like "nobody cared" which was
getting unveiled while returning -1 or 0 from handler.
Signed-off-by: default avatarMukesh Ojha <mukesh02@linux.vnet.ibm.com>
Reviewed-by: default avatarVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent a5bbe8fd
...@@ -371,13 +371,12 @@ static irqreturn_t process_dump(int irq, void *data) ...@@ -371,13 +371,12 @@ static irqreturn_t process_dump(int irq, void *data)
{ {
int rc; int rc;
uint32_t dump_id, dump_size, dump_type; uint32_t dump_id, dump_size, dump_type;
struct dump_obj *dump;
char name[22]; char name[22];
struct kobject *kobj; struct kobject *kobj;
rc = dump_read_info(&dump_id, &dump_size, &dump_type); rc = dump_read_info(&dump_id, &dump_size, &dump_type);
if (rc != OPAL_SUCCESS) if (rc != OPAL_SUCCESS)
return rc; return IRQ_HANDLED;
sprintf(name, "0x%x-0x%x", dump_type, dump_id); sprintf(name, "0x%x-0x%x", dump_type, dump_id);
...@@ -389,12 +388,10 @@ static irqreturn_t process_dump(int irq, void *data) ...@@ -389,12 +388,10 @@ static irqreturn_t process_dump(int irq, void *data)
if (kobj) { if (kobj) {
/* Drop reference added by kset_find_obj() */ /* Drop reference added by kset_find_obj() */
kobject_put(kobj); kobject_put(kobj);
return 0; return IRQ_HANDLED;
} }
dump = create_dump_obj(dump_id, dump_size, dump_type); create_dump_obj(dump_id, dump_size, dump_type);
if (!dump)
return -1;
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment