diff options
Diffstat (limited to 'drivers/pci/hotplug/fakephp.c')
| -rw-r--r-- | drivers/pci/hotplug/fakephp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/fakephp.c b/drivers/pci/hotplug/fakephp.c index 6151389fd903..5317e4d7d96e 100644 --- a/drivers/pci/hotplug/fakephp.c +++ b/drivers/pci/hotplug/fakephp.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
| 20 | #include <linux/pci.h> | 20 | #include <linux/pci.h> |
| 21 | #include <linux/device.h> | 21 | #include <linux/device.h> |
| 22 | #include <linux/slab.h> | ||
| 22 | #include "../pci.h" | 23 | #include "../pci.h" |
| 23 | 24 | ||
| 24 | struct legacy_slot { | 25 | struct legacy_slot { |
| @@ -73,7 +74,7 @@ static void legacy_release(struct kobject *kobj) | |||
| 73 | } | 74 | } |
| 74 | 75 | ||
| 75 | static struct kobj_type legacy_ktype = { | 76 | static struct kobj_type legacy_ktype = { |
| 76 | .sysfs_ops = &(struct sysfs_ops){ | 77 | .sysfs_ops = &(const struct sysfs_ops){ |
| 77 | .store = legacy_store, .show = legacy_show | 78 | .store = legacy_store, .show = legacy_show |
| 78 | }, | 79 | }, |
| 79 | .release = &legacy_release, | 80 | .release = &legacy_release, |
