mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
power: reset: at91: fix __le32 cast in reset code
The writel() takes standard integers, not __le32 so fix the following sparse warnings by removing the cpu_to_le32() calls. drivers/power/reset/at91-reset.c:134:9: warning: cast from restricted __le32 drivers/power/reset/at91-reset.c:143:9: warning: cast from restricted __le32 This has made no code changes, the md5sums pre and post applying this patch are the same. The at91 should be natively little endian anyway. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
bffc687cc6
commit
c045006420
1 changed files with 2 additions and 4 deletions
|
@ -131,7 +131,7 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode,
|
||||||
static int sama5d3_restart(struct notifier_block *this, unsigned long mode,
|
static int sama5d3_restart(struct notifier_block *this, unsigned long mode,
|
||||||
void *cmd)
|
void *cmd)
|
||||||
{
|
{
|
||||||
writel(cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST),
|
writel(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST,
|
||||||
at91_rstc_base);
|
at91_rstc_base);
|
||||||
|
|
||||||
return NOTIFY_DONE;
|
return NOTIFY_DONE;
|
||||||
|
@ -140,9 +140,7 @@ static int sama5d3_restart(struct notifier_block *this, unsigned long mode,
|
||||||
static int samx7_restart(struct notifier_block *this, unsigned long mode,
|
static int samx7_restart(struct notifier_block *this, unsigned long mode,
|
||||||
void *cmd)
|
void *cmd)
|
||||||
{
|
{
|
||||||
writel(cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PROCRST),
|
writel(AT91_RSTC_KEY | AT91_RSTC_PROCRST, at91_rstc_base);
|
||||||
at91_rstc_base);
|
|
||||||
|
|
||||||
return NOTIFY_DONE;
|
return NOTIFY_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue