Commit 913d44b6 authored by Patrick Mochel's avatar Patrick Mochel

[power] Make sure MTRR uses right methods in sysdev_driver.

parent 9234878a
...@@ -574,7 +574,7 @@ static int mtrr_save(struct sys_device * sysdev, u32 state) ...@@ -574,7 +574,7 @@ static int mtrr_save(struct sys_device * sysdev, u32 state)
int i; int i;
int size = num_var_ranges * sizeof(struct mtrr_value); int size = num_var_ranges * sizeof(struct mtrr_value);
mtrr_state = kmalloc(size,GFP_KERNEL); mtrr_state = kmalloc(size,GFP_ATOMIC);
if (mtrr_state) if (mtrr_state)
memset(mtrr_state,0,size); memset(mtrr_state,0,size);
else else
...@@ -607,8 +607,8 @@ static int mtrr_restore(struct sys_device * sysdev) ...@@ -607,8 +607,8 @@ static int mtrr_restore(struct sys_device * sysdev)
static struct sysdev_driver mtrr_sysdev_driver = { static struct sysdev_driver mtrr_sysdev_driver = {
.save = mtrr_save, .suspend = mtrr_save,
.restore = mtrr_restore, .resume = mtrr_restore,
}; };
......
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