From: Adrian Bunk <bunk@fs.tum.de>
To: Christer Weinigel <wingel@nano-system.com>,
linux-i2c@pelican.tk.uni-linz.ac.at
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: [2.5 patch] fix drivers/i2c/scx200_i2c.c compilation
Date: Tue, 8 Apr 2003 13:36:46 +0200 [thread overview]
Message-ID: <20030408113646.GE5046@fs.tum.de> (raw)
I got the following compile error in 2.5.67:
<-- snip -->
...
gcc -Wp,-MD,drivers/i2c/.scx200_i2c.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=k6 -Iinclude/asm-i386/mach-default -nostdinc
-iwithprefix include -DKBUILD_BASENAME=scx200_i2c -DKBUILD_MODNAME=scx200_i2c
-c -o drivers/i2c/scx200_i2c.o drivers/i2c/scx200_i2c.c
drivers/i2c/scx200_i2c.c:85: unknown field `name' specified in initializer
drivers/i2c/scx200_i2c.c:85: warning: initialization makes integer from
pointer without a cast
drivers/i2c/scx200_i2c.c: In function `scx200_i2c_init':
drivers/i2c/scx200_i2c.c:113: structure has no member named `name'
make[2]: *** [drivers/i2c/scx200_i2c.o] Error 1
<-- snip -->
The following patch is needed:
--- linux-2.5.67-notfull/drivers/i2c/scx200_i2c.c.old 2003-04-08 13:04:22.000000000 +0200
+++ linux-2.5.67-notfull/drivers/i2c/scx200_i2c.c 2003-04-08 13:07:14.000000000 +0200
@@ -82,9 +82,11 @@
static struct i2c_adapter scx200_i2c_ops = {
.owner = THIS_MODULE,
- .name = "NatSemi SCx200 I2C",
.id = I2C_HW_B_VELLE,
.algo_data = &scx200_i2c_data,
+ .dev = {
+ .name = "NatSemi SCx200 I2C",
+ },
};
int scx200_i2c_init(void)
@@ -110,7 +112,7 @@
if (i2c_bit_add_bus(&scx200_i2c_ops) < 0) {
printk(KERN_ERR NAME ": adapter %s registration failed\n",
- scx200_i2c_ops.name);
+ scx200_i2c_ops.dev.name);
return -ENODEV;
}
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next reply other threads:[~2003-04-08 11:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 11:36 Adrian Bunk [this message]
2003-04-08 21:51 ` Greg KH
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=20030408113646.GE5046@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=linux-i2c@pelican.tk.uni-linz.ac.at \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
--cc=wingel@nano-system.com \
/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®