summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_mv.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-02-16 01:40:06 -0800
committerJeff Garzik <jeff@garzik.org>2007-02-21 04:58:17 -0500
commit8d9db2d2fbae9e05022825c32f86e00c8e342860 (patch)
treed59c4d88d62253ba40afa99b76052faf3afa0f67 /drivers/ata/sata_mv.c
parent2cb27853b7cbf0c908444e25c61b62fa336b88cd (diff)
downloadop-kernel-dev-8d9db2d2fbae9e05022825c32f86e00c8e342860.zip
op-kernel-dev-8d9db2d2fbae9e05022825c32f86e00c8e342860.tar.gz
SATA: use NULL for ptrs
Fix sparse warnings in SATA: drivers/ata/sata_sil.c:342:9: warning: Using plain integer as NULL pointer drivers/ata/sata_mv.c:2056:55: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_mv.c')
-rw-r--r--drivers/ata/sata_mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index d689df5..c73aa3b 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -2052,7 +2052,7 @@ static void mv_port_init(struct ata_ioports *port, void __iomem *port_mmio)
port->altstatus_addr = port->ctl_addr = shd_base + SHD_CTL_AST_OFS;
/* unused: */
- port->cmd_addr = port->bmdma_addr = port->scr_addr = 0;
+ port->cmd_addr = port->bmdma_addr = port->scr_addr = NULL;
/* Clear any currently outstanding port interrupt conditions */
serr_ofs = mv_scr_offset(SCR_ERROR);
OpenPOWER on IntegriCloud