[SCSI] qla2xxx: fix regression on sparc64
authorDavid Miller <davem@davemloft.net>
Mon, 16 Apr 2007 19:37:43 +0000 (12:37 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Mon, 30 Apr 2007 14:58:52 +0000 (09:58 -0500)
commit4e08df3f91837656c36712f559d5ce8d80852760
tree1293da261c3a2bd224992d62bcb0ff9a68074b2f
parentd7b8bcb0a0819315a51cae620ff7ae0c1704c069
[SCSI] qla2xxx: fix regression on sparc64

Some sparc64 boxes don't have a valid NVRAM (from which the driver
takes its WWPN) try to extract this from open firmware instead and if
that fails, fall back to a default, which would be invalid if more
than one machine on the same SAN does this, since two machines with
the same WWPN would be illegal, so warn when taking this potentially
invalid default.

Tested on SunBlade-1000:

Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla2xxx/qla_init.c