]> git.baikalelectronics.ru Git - kernel.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)
commit11a809a54d8b1366335f8b721065547a8e82336a
tree0fad019ca8b54e226a8c5a6e48fc476d9f33b757
parente33952a930166ad58f2c0ad0abb3edcf1ef81049
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