diff options
author | Jing Huang <huangj@brocade.com> | 2010-10-18 20:12:29 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-25 17:18:20 -0400 |
commit | 5344026065f79b102fcc44bc6332f856a111962a (patch) | |
tree | c28f91eb4593e3e89b030a65a4fd71b8b43cc1f1 /drivers/scsi/bfa/bfad_debugfs.c | |
parent | ba816ea8e2eacbf3d198ad1859f413c2d6213434 (diff) |
[SCSI] bfa: remove os wrapper functions and macros
This patch replaces register access functions and macros with the the ones
provided by linux.
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfad_debugfs.c')
-rw-r--r-- | drivers/scsi/bfa/bfad_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfad_debugfs.c b/drivers/scsi/bfa/bfad_debugfs.c index 69ed1c4a903e..1fedeeb4ac1f 100644 --- a/drivers/scsi/bfa/bfad_debugfs.c +++ b/drivers/scsi/bfa/bfad_debugfs.c | |||
@@ -318,7 +318,7 @@ bfad_debugfs_write_regrd(struct file *file, const char __user *buf, | |||
318 | regbuf = (u32 *)bfad->regdata; | 318 | regbuf = (u32 *)bfad->regdata; |
319 | spin_lock_irqsave(&bfad->bfad_lock, flags); | 319 | spin_lock_irqsave(&bfad->bfad_lock, flags); |
320 | for (i = 0; i < len; i++) { | 320 | for (i = 0; i < len; i++) { |
321 | *regbuf = bfa_reg_read(reg_addr); | 321 | *regbuf = readl(reg_addr); |
322 | regbuf++; | 322 | regbuf++; |
323 | reg_addr += sizeof(u32); | 323 | reg_addr += sizeof(u32); |
324 | } | 324 | } |
@@ -361,7 +361,7 @@ bfad_debugfs_write_regwr(struct file *file, const char __user *buf, | |||
361 | 361 | ||
362 | reg_addr = (u32 *) ((u8 *) bfa_ioc_bar0(ioc) + addr); | 362 | reg_addr = (u32 *) ((u8 *) bfa_ioc_bar0(ioc) + addr); |
363 | spin_lock_irqsave(&bfad->bfad_lock, flags); | 363 | spin_lock_irqsave(&bfad->bfad_lock, flags); |
364 | bfa_reg_write(reg_addr, val); | 364 | writel(val, reg_addr); |
365 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); | 365 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); |
366 | 366 | ||
367 | return nbytes; | 367 | return nbytes; |