ems_pci: fix size of CAN controllers BAR mapping for CPC-PCI v2
authorSebastian Haas <haas@ems-wuensche.com>
Thu, 24 Sep 2009 03:55:05 +0000 (03:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2009 22:39:18 +0000 (15:39 -0700)
commitedf42a27e8e242e543716663e54aa2b592ea070a
treec18ca7f0564e94a7c09cb25b03627798cc4454ae
parent0c01695dabe508ecf3a619c36f0918e8d24c0d05
ems_pci: fix size of CAN controllers BAR mapping for CPC-PCI v2

The driver mapped only 128 bytes of the CAN controller address space when a
CPC-PCI v2 was detected (incl. CPC-104P). This patch will fix it by always
mapping the whole address space (4096 bytes on all boards) of the
corresponding PCI BAR.

Signed-off-by: Sebastian Haas <haas@ems-wuensche.com>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/sja1000/ems_pci.c