]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/ssb/pci.c
ssb/bcma: fill attribute alpha2 from sprom
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 29 Apr 2012 00:04:10 +0000 (02:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 16:45:21 +0000 (12:45 -0400)
commitbf7d420b4a3ea06d9638ec7f1b9d7971fa7f4f66
tree78b03e4de848b3d2a2b62ee22391c3008ac553f3
parenta25595562291baea4ccc2ed570dd15c638b67b21
ssb/bcma: fill attribute alpha2 from sprom

The attribute country_code and alpha2 are two different attributes in
the sprom. country_code contains some code in an 8 bit coding and
alpha2 contains two chars with the country code. The attributes where
read out wrongly in the past and country_code is only available on
sprom version 1.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/sprom.c
drivers/ssb/pci.c
include/linux/ssb/ssb_regs.h