Commit d83e92b3 authored by Huang Rui's avatar Huang Rui Committed by Guenter Roeck

hwmon: (fam15h_power) Rename fam15h_power_is_internal_node0 function

We rename fam15h_power_is_internal_node0() function to
should_load_on_this_node(), because it may not be node0 from KV and
on, and they are single-node processors.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 5dc08725
...@@ -117,7 +117,7 @@ static const struct attribute_group fam15h_power_group = { ...@@ -117,7 +117,7 @@ static const struct attribute_group fam15h_power_group = {
}; };
__ATTRIBUTE_GROUPS(fam15h_power); __ATTRIBUTE_GROUPS(fam15h_power);
static bool fam15h_power_is_internal_node0(struct pci_dev *f4) static bool should_load_on_this_node(struct pci_dev *f4)
{ {
u32 val; u32 val;
...@@ -214,7 +214,7 @@ static int fam15h_power_probe(struct pci_dev *pdev, ...@@ -214,7 +214,7 @@ static int fam15h_power_probe(struct pci_dev *pdev,
*/ */
tweak_runavg_range(pdev); tweak_runavg_range(pdev);
if (!fam15h_power_is_internal_node0(pdev)) if (!should_load_on_this_node(pdev))
return -ENODEV; return -ENODEV;
data = devm_kzalloc(dev, sizeof(struct fam15h_power_data), GFP_KERNEL); data = devm_kzalloc(dev, sizeof(struct fam15h_power_data), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment