mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
This commit is contained in:
committed by
Damien Le Moal
parent
cc26436452
commit
6da99acbff
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user