9
0
Fork 0
barebox/drivers/base
Sascha Hauer fe7855bb4f driver: Introduce dev_request_mem_resource
dev_request_mem_region returns a void * which shall be checked with
IS_ERR(), but in some cases the valid pointer returned clashes with
error values. This is especially the case on some Atmel SoCs.

This introduces dev_request_mem_resource which returns a struct resource
instead which in any case can be checked with IS_ERR(). It's the drivers
responsibility then to get the IOMEM pointer from the resource.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-23 08:15:57 +01:00
..
regmap Add initial regmap support 2016-02-05 14:32:16 +01:00
Makefile Add initial regmap support 2016-02-05 14:32:16 +01:00
bus.c drivers: bus: Match against id_table first 2015-12-07 10:59:42 +01:00
driver.c driver: Introduce dev_request_mem_resource 2016-02-23 08:15:57 +01:00
platform.c driver: Call remove function only when available 2015-03-17 07:24:50 +01:00
resource.c net: dm9k: Fix resource sizes in add_dm9000_device 2013-12-18 16:52:14 +01:00