All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: James.Bottomley@HansenPartnership.com, linux-scsi@vger.kernel.org
Subject: Re: PATCH: SNI RM 53c710 driver
Date: Tue, 2 Jan 2007 11:52:41 +0000	[thread overview]
Message-ID: <20070102115241.GD24951@infradead.org> (raw)
In-Reply-To: <20061225203204.GB3293@alpha.franken.de>

On Mon, Dec 25, 2006 at 09:32:04PM +0100, Thomas Bogendoerfer wrote:
> This patch adds a SCSI driver for the onboard 53c710 chip of some
> SNI RM machines.

Nice, this looks really clean.  I haven't seen the code to declare
the platform devices in the mips queue yet, do you plan to submit it
soon?

> +static int __init snirm710_init(void)
> +{
> +	int err;
> +	
> +	if ((err = platform_driver_register(&snirm710_driver))) {
> +		printk(KERN_ERR "Driver registration failed\n");
> +		return err;
> +	}
> +	return 0;
> +}

Please just write this as:

static int __init snirm710_init(void)
{
	return platform_driver_register(&snirm710_driver)));
}

In the modular case we already get a message from modprobe and in
the builtin-case verbose initcalls also display the error.


  reply	other threads:[~2007-01-02 11:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-25 20:32 PATCH: SNI RM 53c710 driver Thomas Bogendoerfer
2007-01-02 11:52 ` Christoph Hellwig [this message]
2007-01-09 21:56   ` Thomas Bogendoerfer

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=20070102115241.GD24951@infradead.org \
    --to=hch@infradead.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=tsbogend@alpha.franken.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.