Unlock driver lock before calling resource_int_value(9).

This should fix LOR(in fact it's not LOR) in device attach.
This commit is contained in:
Pyun YongHyeon 2005-09-13 10:12:28 +00:00
parent db7a6c2f43
commit 7535accf91

View File

@ -1501,6 +1501,8 @@ m3_config(struct sc_info *sc)
int hint;
M3_LOCK_ASSERT(sc);
M3_UNLOCK(sc);
/*
* The volume buttons can be wired up via two different sets of pins.
* This presents a problem since we can't tell which way it's
@ -1513,6 +1515,7 @@ m3_config(struct sc_info *sc)
hv_cfg = (hint > 0) ? HV_BUTTON_FROM_GD : 0;
else
hv_cfg = HV_BUTTON_FROM_GD;
M3_LOCK(sc);
data = pci_read_config(sc->dev, PCI_ALLEGRO_CONFIG, 4);
data &= ~HV_BUTTON_FROM_GD;