> > [...] > >> +#ifndef __UBOOT__ >> +#include <linux/device.h> >> +#include <linux/kernel.h> >> +#endif > > Please drop this #if block Actually I missed the fact that the target was U-Boot, so it is fine obviously :-) Rest is still valid.