|
From: Andrei T. <an...@un...> - 2007-04-20 02:11:55
|
>>>> This patch has been tested with kernels 2.6.19 and higher only. The > basic > >>> I would like to include this, but it fails to compile on 2.4 kernels. >>> Could you make a patch which is backwards compatible and compiles on > any >>> 2.4 and 2.6 kernel version? > >> The attached patch fixes the backwards compatibility issue. I've >> regression-tested it with kernel 2.6.20.7, can't test it with older > kernels, >> but as far as I can tell, it should work. > > In older 2.6 kernels linux/platform_device.h does not exist. There seems > to be linux/platform.h, but I'm not sure if the same functionality is > available. Could you please check this? > Christoph I can't seem to find a way to find out when platform_device.h was introduced. On one hand, the structs were defined in linux/platform.h and linux/device.h well before 2.6, and on the other the structs in older version are not compatible with this code (no suspend/resume support). Why don't we just say that this patch applies to 2.6.18 (that's what I tested it with) and later. The updated patch is attached. Thanks, Andrei. |