Commit 6da99acb authored by Sergey Shtylyov's avatar Sergey Shtylyov Committed by Damien Le Moal

ata: ahci_xgene: fix parameter types of xgene_ahci_poll_reg_val()

xgene_ahci_poll_reg_val() passes its 'unsigned long {interval|timeout}'
params verbatim to ata_{msleep|deadline}() that just take 'unsigned int'
param for the time intervals in ms -- eliminate unneeded implicit cast...
Signed-off-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
parent cc264364
...@@ -110,9 +110,8 @@ static int xgene_ahci_init_memram(struct xgene_ahci_context *ctx) ...@@ -110,9 +110,8 @@ static int xgene_ahci_init_memram(struct xgene_ahci_context *ctx)
* @timeout : timeout for achieving the value. * @timeout : timeout for achieving the value.
*/ */
static int xgene_ahci_poll_reg_val(struct ata_port *ap, static int xgene_ahci_poll_reg_val(struct ata_port *ap,
void __iomem *reg, unsigned void __iomem *reg, unsigned int val,
int val, unsigned long interval, unsigned int interval, unsigned int timeout)
unsigned long timeout)
{ {
unsigned long deadline; unsigned long deadline;
unsigned int tmp; unsigned int tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment