mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: MAINTAINERS: Add keyword match for of_match_table to device tree section of: constify property name parameters for helper functions input: xilinx_ps2: Add missing of_address.h header of: address: use resource_size helper
This commit is contained in:
commit
a6b11f5338
5 changed files with 16 additions and 11 deletions
|
|
@ -610,6 +610,6 @@ void __iomem *of_iomap(struct device_node *np, int index)
|
|||
if (of_address_to_resource(np, index, &res))
|
||||
return NULL;
|
||||
|
||||
return ioremap(res.start, 1 + res.end - res.start);
|
||||
return ioremap(res.start, resource_size(&res));
|
||||
}
|
||||
EXPORT_SYMBOL(of_iomap);
|
||||
|
|
|
|||
|
|
@ -610,8 +610,9 @@ EXPORT_SYMBOL(of_find_node_by_phandle);
|
|||
*
|
||||
* The out_value is modified only if a valid u32 value can be decoded.
|
||||
*/
|
||||
int of_property_read_u32_array(const struct device_node *np, char *propname,
|
||||
u32 *out_values, size_t sz)
|
||||
int of_property_read_u32_array(const struct device_node *np,
|
||||
const char *propname, u32 *out_values,
|
||||
size_t sz)
|
||||
{
|
||||
struct property *prop = of_find_property(np, propname, NULL);
|
||||
const __be32 *val;
|
||||
|
|
@ -645,7 +646,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_array);
|
|||
*
|
||||
* The out_string pointer is modified only if a valid string can be decoded.
|
||||
*/
|
||||
int of_property_read_string(struct device_node *np, char *propname,
|
||||
int of_property_read_string(struct device_node *np, const char *propname,
|
||||
const char **out_string)
|
||||
{
|
||||
struct property *prop = of_find_property(np, propname, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue