From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: Re: [SPAM] [PATCH] IP32: Add platform devices for audio and volume button
Date: Sat, 5 Jul 2008 10:22:30 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0807051020170.5733@anakin> (raw)
In-Reply-To: <20080704231213.3C6121DA77A@solo.franken.de>
On Sat, 5 Jul 2008, Thomas Bogendoerfer wrote:
> +static __init int sgio2audio_devinit(void)
> +{
> + struct platform_device *pd;
> + int ret;
> +
> + pd = platform_device_alloc("sgio2audio", -1);
> + if (!pd)
> + return -ENOMEM;
> +
> + ret = platform_device_add(pd);
> + if (ret)
> + platform_device_put(pd);
This sequence is exactly what platform_device_register_simple() does, right?
BTW, I'm also still wondering what's the most efficient way of creating
platform devices. There's also platform_device_register()...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
prev parent reply other threads:[~2008-07-05 8:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-04 23:12 [PATCH] IP32: Add platform devices for audio and volume button Thomas Bogendoerfer
2008-07-04 23:25 ` Ralf Baechle
2008-07-05 8:22 ` Geert Uytterhoeven [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=Pine.LNX.4.64.0807051020170.5733@anakin \
--to=geert@linux-m68k.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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 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).