Re: [parisc-linux] Untested port of parisc_device to generic device interface

From: Marc Zyngier (
Date: Wed Nov 13 2002 - 07:36:14 EST

>>>>> "Ivan" == Ivan Kokshaysky <> writes:

Ivan> It seems that two things are fundamentally missing in generic
Ivan> device model:
Ivan> 1. clean way to detect the type of container structure from arbitrary
Ivan> struct device *;


I'm using the following stuff in some EISA drivers :

#define DEVICE_EISA(dev) (((dev)->bus == &eisa_bus_type) ? to_eisa_device((dev)) : NULL)
#define DEVICE_EISA(dev) NULL

and frankly, it's really awful. On drivers which are both EISA and
PCI (3c59x, aic7xxx), this is a major pain.


Places change, faces change. Life is so very strange.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:28 EST