From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH] PowerMac: Update for removal of device->name
Date: 16 Aug 2003 18:51:02 +0200 [thread overview]
Message-ID: <1061052662.598.15.camel@gaston> (raw)
Hi Linus !
This patch fix build of PowerMac driver core with the removal
of struct device "name" field. Please apply. It doesn't depend
not breaks the other pending PowerMac patches.
Ben.
===== arch/ppc/syslib/of_device.c 1.1 vs edited =====
--- 1.1/arch/ppc/syslib/of_device.c Sat Aug 9 18:40:04 2003
+++ edited/arch/ppc/syslib/of_device.c Sat Aug 16 18:48:20 2003
@@ -227,8 +227,6 @@
dev->dev.parent = NULL;
dev->dev.bus = &of_platform_bus_type;
- /* XXX Make something better here ? */
- snprintf(dev->dev.name, DEVICE_NAME_SIZE, "Platform device %s", np->name);
reg = (u32 *)get_property(np, "reg", NULL);
strlcpy(dev->dev.bus_id, bus_id, BUS_ID_SIZE);
===== drivers/macintosh/macio_asic.c 1.1 vs edited =====
--- 1.1/drivers/macintosh/macio_asic.c Sat Aug 9 18:40:04 2003
+++ edited/drivers/macintosh/macio_asic.c Sat Aug 16 18:47:51 2003
@@ -141,9 +141,6 @@
dev->ofdev.dev.parent = parent;
dev->ofdev.dev.bus = &macio_bus_type;
- /* XXX Make something better here ? */
- snprintf(dev->ofdev.dev.name, DEVICE_NAME_SIZE, "MacIO device %s", np->name);
-
/* MacIO itself has a different reg, we use it's PCI base */
if (np == chip->of_node) {
sprintf(dev->ofdev.dev.bus_id, "%1d.%08lx:%.8s", chip->lbus.index,
reply other threads:[~2003-08-16 16:51 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=1061052662.598.15.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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