From: Michael Buesch <mb@bu3sch.de>
To: Felix Fietkau <nbd@openwrt.org>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] Fix a null pointer check in ssb mipscore init
Date: Sun, 14 Oct 2007 21:10:27 +0200 [thread overview]
Message-ID: <200710142110.28074.mb@bu3sch.de> (raw)
In-Reply-To: <47126836.5000906@openwrt.org>
On Sunday 14 October 2007 21:04:22 Felix Fietkau wrote:
> Fix a null pointer check in ssb mipscore init
>
> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Michael Buesch <mb@bu3sch.de>
> --- a/drivers/ssb/driver_mipscore.c
> +++ b/drivers/ssb/driver_mipscore.c
> @@ -171,20 +171,21 @@ u32 ssb_cpu_clock(struct ssb_mipscore *mcore)
> return rate;
> }
>
> void ssb_mipscore_init(struct ssb_mipscore *mcore)
> {
> - struct ssb_bus *bus = mcore->dev->bus;
> + struct ssb_bus *bus;
> struct ssb_device *dev;
> unsigned long hz, ns;
> unsigned int irq, i;
>
> if (!mcore->dev)
> return; /* We don't have a MIPS core */
>
> ssb_dprintk(KERN_INFO PFX "Initializing MIPS core...\n");
>
> + bus = mcore->dev->bus;
> hz = ssb_clockspeed(bus);
> if (!hz)
> hz = 100000000;
> ns = 1000000000 / hz;
>
>
>
>
--
Greetings Michael.
prev parent reply other threads:[~2007-10-14 19:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-14 19:04 [PATCH] Fix a null pointer check in ssb mipscore init Felix Fietkau
2007-10-14 19:10 ` Michael Buesch [this message]
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=200710142110.28074.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=nbd@openwrt.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 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.