From: "Samuel Iglesias Gonsálvez" <siglesias@igalia.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] Staging: IndustryPack bus for the Linux Kernel
Date: Mon, 07 May 2012 10:24:55 +0200 [thread overview]
Message-ID: <1336379095.2852.17.camel@fourier.local.igalia.com> (raw)
In-Reply-To: <20120507080458.GN22134@mwanda>
On Mon, 2012-05-07 at 11:04 +0300, Dan Carpenter wrote:
>
> [snip]
>
> > +int ipack_device_find_drv(struct device_driver *driver, void *param)
> > +{
> > + int ret;
> > + struct ipack_device *dev = (struct ipack_device *)param;
> > +
> > + ret = ipack_bus_match(&dev->dev, driver);
> > + if (ret)
> > + return !ipack_bus_probe(&dev->dev);
>
> Wouldn't probe() return zero or a negative error code?
Yes. However, in case of the function called by bus_for_each_drv(), it
should return zero if you want to continue or nonzero value to stop the
iteration.
I considered that if the probe fails, we can try with the next driver in
the list. So, the returned value of probe() is negated.
I will fix the other things and send it again with other suggestions.
Thanks,
Sam
next prev parent reply other threads:[~2012-05-07 8:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1336375569-21692-1-git-send-email-siglesias@igalia.com>
2012-05-07 7:26 ` [PATCH v2 2/3] Staging: ipack: added support for the TEWS TPCI-200 carrier board Samuel Iglesias Gonsalvez
2012-05-07 8:20 ` Manohar Vanga
2012-05-07 8:36 ` Samuel Iglesias Gonsálvez
2012-05-07 7:26 ` [PATCH v2 3/3] Staging: ipack: add support for IP-OCTAL mezzanine board Samuel Iglesias Gonsalvez
2012-05-07 8:40 ` Dan Carpenter
2012-05-07 8:04 ` [PATCH v2 1/3] Staging: IndustryPack bus for the Linux Kernel Dan Carpenter
2012-05-07 8:24 ` Samuel Iglesias Gonsálvez [this message]
2012-05-07 14:24 ` Samuel Iglesias Gonsálvez
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=1336379095.2852.17.camel@fourier.local.igalia.com \
--to=siglesias@igalia.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®