device: Add functions to add resources
We currently have functions to add a device based on function parameters.
This adds the corresponding functions to add resources to a device without
registering the device itself. This is useful to manipulate devices before
registering them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 54f55d7 commit f92f309c54996e0b4d09953820919161fbecac1d
@Sascha Hauer Sascha Hauer authored on 25 Nov 2013
Showing 2 changed files
View
drivers/base/resource.c
View
include/driver.h