]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ssb: get mac address from sprom struct for gige driver
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 7 Feb 2013 05:37:37 +0000 (05:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 04:47:01 +0000 (23:47 -0500)
commit180996c30517b5374f63df3c9765716c5b477155
tree0fad019ca8b54e226a8c5a6e48fc476d9f33b757
parent241448c2b84ff02a46ce88199e05fdeb55bad449
ssb: get mac address from sprom struct for gige driver

The mac address is already stored in the sprom structure by the
platform code of the SoC this Ethernet core is found on, it just has to
be fetched from this structure instead of accessing the nvram here.
This patch also adds a return value to indicate if a mac address could
be fetched from the sprom structure.
When CONFIG_SSB_DRIVER_GIGE is not set the header file now also declares
ssb_gige_get_macaddr().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Michael Buesch <m@bues.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ssb/ssb_driver_gige.h