mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00: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:
parent
cc26436452
commit
6da99acbff
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue