Skip to content

Commit

Permalink
[POWERPC] tmp_atmel: Constify & voidify get_property()
Browse files Browse the repository at this point in the history
Now that get_property() returns a void *, there's no need to cast its
return value. Also, treat the return value as const, so we can
constify get_property later.

tpm_atmel changes

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Jeremy Kerr authored and Paul Mackerras committed Jul 31, 2006
1 parent abddd18 commit 5c339e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/tpm/tpm_atmel.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void __iomem * atmel_get_base_addr(unsigned long *base, int *region_size)
{
struct device_node *dn;
unsigned long address, size;
unsigned int *reg;
const unsigned int *reg;
int reglen;
int naddrc;
int nsizec;
Expand All @@ -52,7 +52,7 @@ static void __iomem * atmel_get_base_addr(unsigned long *base, int *region_size)
return NULL;
}

reg = (unsigned int *) get_property(dn, "reg", &reglen);
reg = get_property(dn, "reg", &reglen);
naddrc = prom_n_addr_cells(dn);
nsizec = prom_n_size_cells(dn);

Expand Down

0 comments on commit 5c339e9

Please sign in to comment.