diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2016-07-22 21:09:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-21 15:59:45 (GMT) |
commit | b200da6744addf5c1ed7dbb8a70cfff8c4e2368e (patch) | |
tree | 475000124f7cc18f9aa08591dd41f24bca0f7f01 /drivers/staging/slicoss/slicoss.c | |
parent | a5e32e74076b8dc0bd05ba011b9ba4903001f89d (diff) | |
download | linux-b200da6744addf5c1ed7dbb8a70cfff8c4e2368e.tar.xz |
staging: slicoss: introduce register accessors that use register offsets
Introduce accessor functions that read and write registers by using a
register offset.
This is in preparation to replace the register addressing by means of the
slic_regs struct with an addressing by means of offsets.
Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/slicoss/slicoss.c')
-rw-r--r-- | drivers/staging/slicoss/slicoss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 577c2d2..edae0f7 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -2920,6 +2920,7 @@ static int slic_init_adapter(struct net_device *netdev, adapter->slotnumber = ((pcidev->devfn >> 3) & 0x1F); adapter->functionnumber = (pcidev->devfn & 0x7); adapter->slic_regs = memaddr; + adapter->regs = memaddr; adapter->irq = pcidev->irq; adapter->chipid = chip_idx; adapter->port = 0; |