summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/w83795/w83795.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/w83795/w83795.c')
-rw-r--r--src/drivers/i2c/w83795/w83795.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/i2c/w83795/w83795.c b/src/drivers/i2c/w83795/w83795.c
index 12be4dab96..392471a9a8 100644
--- a/src/drivers/i2c/w83795/w83795.c
+++ b/src/drivers/i2c/w83795/w83795.c
@@ -22,7 +22,6 @@
#include <console/console.h>
#include <device/device.h>
#include "southbridge/amd/cimx/sb700/smbus.h" /*SMBUS_IO_BASE*/
-#include <cpu/x86/lapic.h>
#include "w83795.h"
static u32 w83795_set_bank(u8 bank)
@@ -225,8 +224,10 @@ static void w83795_init(w83795_fan_mode_t mode, u8 dts_src)
static void w83795_hwm_init(device_t dev)
{
struct device *cpu;
+ struct cpu_info *info;
- cpu = dev_find_lapic(lapicid());
+ info = cpu_info();
+ cpu = info->cpu;
if (!cpu)
die("CPU: missing cpu device structure");