On Fri, Jul 15, 2005 at 10:21:43PM +0200, Pierre Ossman wrote: > Russell King wrote: > >Also note that since we have a class_dev, the mmc_host 'dev' field can > >be removed. However, we'll probably have to update the host drivers > >to do this, so it should be a separate patch. > > I believe there's a bit of abstraction to be gained from not poking > around inside the class_dev struct in too many places. It's not like > we're wasting any large amounts of memory. I still don't like the needless duplication. How about doing it this way (see the attached patch.) Note: I also intend to move MMC over to using an IDR for the host numbers, which is why we need to setup the name at registration time, not allocation time. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core