tg3: Qualify use of tp->pcix_cap
authorMatt Carlson <mcarlson@broadcom.com>
Sat, 22 Nov 2008 01:17:04 +0000 (17:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Nov 2008 01:17:04 +0000 (17:17 -0800)
commit52f4490c3b6dcb1e8dec7ff9f1c35f09bd7c136f
tree2629fc55c5cf9ca145a9e31b01840beec6635a9b
parentad8292681a629cdb16bb19ee7d721b457c32a23a
tg3: Qualify use of tp->pcix_cap

This patch makes sure the device is a PCIX device before attempting to
use the pcix_cap device structure member.  This is prep work for the
following patch.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c