[ltp] Re: [ANN] tp_smapi - a new Linux SMAPI driver
Volker Gropp
linux-thinkpad@linux-thinkpad.org
Mon, 5 Dec 2005 17:47:43 +0100
* On Mon, Dec 05, 2005 at 18:27:23 +0200, Shem Multinymous wrote:
> Hi,
>
> On 12/5/05, Volker Gropp <vgropp@pefra.de> wrote:
> > * On Mon, Dec 05, 2005 at 16:32:13 +0200, Shem Multinymous wrote:
> > +#ifndef platform_bus_type
> > +#include <linux/platform_device.h>
> > +#endif
>
> That #ifdef doesn't wok (it doesn't see function symbols). I'll use this:
>
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
> #include <linux/platform_device.h>
> #else
> #include <linux/device.h>
> #endif
yes i thought so aswell, but just tried it. It works (for me), dunno why exactly.
But your version should work aswell of course.
Thanks again.
Volker Gropp