linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Seidel <fseidel@suse.de>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: trenn@suse.de, linux-acpi@vger.kernel.org,
	Len Brown <len.brown@intel.com>
Subject: Re: [patch 0/2] acpi: driverregistration again can report ENODEV
Date: Tue, 24 Oct 2006 11:05:47 +0200	[thread overview]
Message-ID: <200610241105.52562.fseidel@suse.de> (raw)
In-Reply-To: <200610230934.12775.bjorn.helgaas@hp.com>

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

On Monday 23 October 2006 17:34, Bjorn Helgaas wrote:
> I think the current tree contains a merge error in asus_acpi_init().
> It says:
>
> 	if (!asus_hotk_found) {
> 		...
> 		return result;
>
> But "result" is always zero at this point (it came from
> acpi_bus_register_driver(), which returns either zero or a negative
> error value).
>
> My original change:
>  
> http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=co
>mmitdiff;h=578b333bfe8eb1360207a08a53c321822a8f40f3 contained:
>
> 	if (!asus_hotk_found) {
> 		...
> 		return -ENODEV;
>
> which is what we want.  I think the -ENODEV got lost when resolving
> conflicts with the "propagate correct return value" patches that
> happened at about the same time.
After some more testings and digging through the code.. i
agree with you that this is way to go (for now).
So, i sadfully now have to vote against my own patch ;-)

Len, please don't commit it. As Bjorn wrote, fixing the asus_acpi module
with return -ENODEV is the better solution.

Thanks,
Frank

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2006-10-24  9:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-20  9:25 [patch 0/2] acpi: driverregistration again can report ENODEV fseidel
2006-10-20  9:25 ` [patch 1/2] " fseidel
2006-10-20  9:25 ` [patch 2/2] " fseidel
2006-10-20  9:59 ` [patch 0/2] " Thomas Renninger
2006-10-20 16:55   ` Bjorn Helgaas
2006-10-22 15:09     ` Thomas Renninger
2006-10-23 15:34       ` Bjorn Helgaas
2006-10-23 16:33         ` Frank Seidel
2006-10-24  9:05         ` Frank Seidel [this message]
2006-10-25 19:58           ` [patch] ACPI: asus_acpi: return -ENODEV when no device found Bjorn Helgaas
2006-10-26  9:22             ` Frank Seidel
2006-10-25 10:40     ` [patch 0/2] acpi: driverregistration again can report ENODEV Zhang Rui
2006-10-25 11:31       ` Thomas Renninger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610241105.52562.fseidel@suse.de \
    --to=fseidel@suse.de \
    --cc=bjorn.helgaas@hp.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=trenn@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).