[lkml]   [2010]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mac8390: change an error return code and some cleanup, take 3
From: Finn Thain <>
Date: Sat, 17 Apr 2010 13:16:04 +1000 (EST)

> Change an error return code from -EAGAIN to -EBUSY since the former is
> misleading.
> Nubus slots are geographically addressed and their irqs are equally
> inflexible. -EAGAIN is misleading because retrying will not help fix
> whatever bug it was that made the irq unavailable.

request_irq() itself returns an appropriate error code, so the
correct change is to do:

err = request_irq( ... );
if (err) {

and return 'err'.

 \ /
  Last update: 2010-04-22 01:33    [W:0.062 / U:0.200 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site