On Fri, Mar 09, 2012 at 01:17:28PM -0700, Stephen Warren wrote: > regmap.s uses devres_alloc() and others that are prototyped in device.h. > Include that to solve the following: > > drivers/base/regmap/regmap.c: In function 'devm_regmap_init': Hrm, what I want to know here is how you're managing to build this file without including regmap.h which includes device.h.