ata: sata_mv: fix mis-conversion in mv_write_cached_reg()
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 7 Jun 2016 16:49:09 +0000 (17:49 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 17 Jun 2016 16:15:17 +0000 (12:15 -0400)
commit76bf3441ad6584ddc3aea1501927f21b21ba3a3a
treeca2070d936fef9703d7339126e71c03efe259d4a
parentf52a4c74efbb61195490535e9d65d964c4ebfee3
ata: sata_mv: fix mis-conversion in mv_write_cached_reg()

Fix the signed issue in mv_write_cached_reg() where the laddr
is assigned from a (long)addr instead of (unsigned long)addr.

Fixes the following warnings:

drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression
drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression
drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression
drivers/ata/sata_mv.c:989:26: warning: cast removes address space of expression

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_mv.c