Re: [PATCH] driverfs support for USB - take 2

Horst von Brand (brand@jupiter.cs.uni-dortmund.de)
Fri, 01 Feb 2002 10:27:25 +0100


Pavel Machek <pavel@suse.cz> said:

[...]

> > - iobus_register(&b->iobus);
> > + b->dev = kmalloc(sizeof(*(b->dev)),GFP_KERNEL);
> Uff... ~~~~~~~~~ would not "struct device" (or
> what should it be) look better?

Yep, but there is _no_ chance to screw up ("or what should it be" ;-) this
way.

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