From: "Akinobu Mita" <akinobu.mita@gmail.com>
To: "Jan-Bernd Themann" <ossthema@de.ibm.com>
Cc: Thomas Klein <tklein@de.ibm.com>, Jeff Garzik <jeff@garzik.org>,
Jan-Bernd Themann <themann@de.ibm.com>,
netdev <netdev@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-ppc <linuxppc-dev@ozlabs.org>,
Christoph Raisch <raisch@de.ibm.com>,
Marcus Eder <meder@de.ibm.com>,
Stefan Roscher <stefan.roscher@de.ibm.com>
Subject: Re: [PATCH 1/2] eHEA: Capability flag for DLPAR support
Date: Wed, 4 Jul 2007 21:53:39 +0900 [thread overview]
Message-ID: <961aa3350707040553m12ff1bccw9421e714337c80d1@mail.gmail.com> (raw)
In-Reply-To: <200707041209.37127.ossthema@de.ibm.com>
2007/7/4, Jan-Bernd Themann <ossthema@de.ibm.com>:
> diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
> index bdb5241..f8c0908 100644
> --- a/drivers/net/ehea/ehea_main.c
> +++ b/drivers/net/ehea/ehea_main.c
> @@ -2923,6 +2923,15 @@ static int check_module_parm(void)
> return ret;
> }
>
> +static ssize_t ehea_show_capabilities(struct device_driver *drv,
> + char *buf)
> +{
> + return sprintf(buf, "%d", EHEA_CAPABILITIES);
> +}
> +
> +static DRIVER_ATTR(capabilities, S_IRUSR | S_IRGRP | S_IROTH,
> + ehea_show_capabilities, NULL);
> +
> int __init ehea_module_init(void)
> {
> int ret;
> @@ -2937,12 +2946,20 @@ int __init ehea_module_init(void)
> if (ret)
> ehea_error("failed registering eHEA device driver on ebus");
>
You forgot to put:
return ret;
or
goto out;
> + ret = driver_create_file(&ehea_driver.driver, &driver_attr_capabilities);
> + if (ret) {
> + ehea_error("failed to register capabilities attribute, ret=%d", ret);
> + ibmebus_unregister_driver(&ehea_driver);
> + goto out;
> + }
> +
> out:
> return ret;
> }
>
next prev parent reply other threads:[~2007-07-04 12:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-04 10:09 [PATCH 1/2] eHEA: Capability flag for DLPAR support Jan-Bernd Themann
2007-07-04 12:53 ` Akinobu Mita [this message]
2007-07-04 12:58 ` Jan-Bernd Themann
-- strict thread matches above, loose matches on Subject: below --
2007-07-05 7:26 Jan-Bernd Themann
2007-07-10 16:59 ` Jeff Garzik
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=961aa3350707040553m12ff1bccw9421e714337c80d1@mail.gmail.com \
--to=akinobu.mita@gmail.com \
--cc=jeff@garzik.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=meder@de.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=ossthema@de.ibm.com \
--cc=raisch@de.ibm.com \
--cc=stefan.roscher@de.ibm.com \
--cc=themann@de.ibm.com \
--cc=tklein@de.ibm.com \
/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).