Re: 2.6.1-mm4

From: Fabian Fenaut
Date: Fri Jan 16 2004 - 13:15:04 EST


Andrew Morton wrote:
Fabian Fenaut <fabian.fenaut@xxxxxxx> wrote:

I got an error compiling -mm4 :

[...]
CC [M] drivers/media/video/ir-kbd-gpio.o
drivers/media/video/ir-kbd-gpio.c:185: unknown field `name' specified in
initializer

You must be using an elderly gcc.

2.95.4 from debian stable

diff -puN drivers/media/video/ir-kbd-gpio.c~ir-kbd-gpio-build-fix drivers/media/video/ir-kbd-gpio.c
--- 25/drivers/media/video/ir-kbd-gpio.c~ir-kbd-gpio-build-fix 2004-01-16 09:01:59.000000000 -0800
+++ 25-akpm/drivers/media/video/ir-kbd-gpio.c 2004-01-16 09:02:17.000000000 -0800
@@ -182,9 +182,11 @@ static int ir_probe(struct device *dev);
static int ir_remove(struct device *dev);
static struct bttv_sub_driver driver = {
- .drv.name = DEVNAME,
- .drv.probe = ir_probe,
- .drv.remove = ir_remove,
+ .drv = {
+ .name = DEVNAME,
+ .probe = ir_probe,
+ .remove = ir_remove,
+ },
.gpio_irq = ir_irq,
};

it works, thanks.

Fabian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/