Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299747
b: refs/heads/master
c: c3e40a9
h: refs/heads/master
i:
  299745: 1b1892f
  299743: 07afeb9
v: v3
  • Loading branch information
Guenter Roeck committed Apr 26, 2012
1 parent 39e8b82 commit eb67610
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eae1415dda93fd4edcce0637aa64b3c9b567563f
refs/heads/master: c3e40a9972428d6e2d8e287ed0233a57a218c30f
9 changes: 6 additions & 3 deletions trunk/drivers/hwmon/fam15h_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,20 @@ static bool __devinit fam15h_power_is_internal_node0(struct pci_dev *f4)
* counter saturations resulting in bogus power readings.
* We correct this value ourselves to cope with older BIOSes.
*/
static DEFINE_PCI_DEVICE_TABLE(affected_device) = {
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) },
{ 0 }
};

static void __devinit tweak_runavg_range(struct pci_dev *pdev)
{
u32 val;
const struct pci_device_id affected_device = {
PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) };

/*
* let this quirk apply only to the current version of the
* northbridge, since future versions may change the behavior
*/
if (!pci_match_id(&affected_device, pdev))
if (!pci_match_id(affected_device, pdev))
return;

pci_bus_read_config_dword(pdev->bus,
Expand Down

0 comments on commit eb67610

Please sign in to comment.