2014-07-10 21:33:35

by Aravind Gopalakrishnan

[permalink] [raw]
Subject: [PATCH] hwmon, fam15h_power: Remove needless pci dev id

PCI_DEVICE_ID_AMD_16H_NB_F4 can be obtained from it's
definition in pci_ids.h. So we don't have to define it
again here.

Signed-off-by: Aravind Gopalakrishnan <[email protected]>
---
drivers/hwmon/fam15h_power.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/hwmon/fam15h_power.c b/drivers/hwmon/fam15h_power.c
index 6040121..d442000 100644
--- a/drivers/hwmon/fam15h_power.c
+++ b/drivers/hwmon/fam15h_power.c
@@ -31,9 +31,6 @@ MODULE_DESCRIPTION("AMD Family 15h CPU processor power monitor");
MODULE_AUTHOR("Andreas Herrmann <[email protected]>");
MODULE_LICENSE("GPL");

-/* Family 16h Northbridge's function 4 PCI ID */
-#define PCI_DEVICE_ID_AMD_16H_NB_F4 0x1534
-
/* D18F3 */
#define REG_NORTHBRIDGE_CAP 0xe8

--
1.8.1.2


2014-07-11 04:57:13

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] hwmon, fam15h_power: Remove needless pci dev id

On 07/10/2014 03:16 PM, Aravind Gopalakrishnan wrote:
> PCI_DEVICE_ID_AMD_16H_NB_F4 can be obtained from it's
> definition in pci_ids.h. So we don't have to define it
> again here.
>
> Signed-off-by: Aravind Gopalakrishnan <[email protected]>

Applied to -next.

Thanks,
Guenter