mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul <set@pobox.com>
To: linux-kernel@vger.kernel.org
Cc: Jeff Garzik <jgarzik@mandrakesoft.com>, Andrew Morton <akpm@digeo.com>
Subject: [patch 2.6] 3c509.c Fix printed dev id.
Date: Sun, 24 Aug 2003 23:27:12 -0400	[thread overview]
Message-ID: <20030825032712.GA2062@squish.home.loc> (raw)

	Hi;

	Callers of el3_common_init() immeadiately then call
register_netdev() and check it for error, and on error
call release_region() on the io addr, and follow an error
path.
	As it stands, the detection prink in el3_common_init()
prints out something like:
eth%d: 3c5x9 at 0x280, BNC port, address  00 20 af 2f d4 81, IRQ 5.
   ^^
	Because the %d is filled out by register_netdev(), called
after the printk.
	This patch just moves all the register_netdev(), and the
release_region() (on error) inside of el3_common_init(), and
gives that function a return value. Now the prink will identify
the device name assigned. Behaviour on error should be
functionally unchanged.

Paul
set@pobox.com

                 reply	other threads:[~2003-08-25  3:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030825032712.GA2062@squish.home.loc \
    --to=set@pobox.com \
    --cc=akpm@digeo.com \
    --cc=jgarzik@mandrakesoft.com \
    --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®