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

From: Horst von Brand (brand@jupiter.cs.uni-dortmund.de)
Date: Fri Feb 01 2002 - 04:27:25 EST


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/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:12 EST