xen-balloon: convert sysdev_class to a regular subsystem

After all sysdev classes are ported to regular driver core entities, the
sysdev implementation will be entirely removed from the kernel.

Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Kay Sievers
2011-12-14 15:32:50 -08:00
committed by Greg Kroah-Hartman
parent d369a5d8fc
commit 0706802183
3 changed files with 83 additions and 84 deletions

View File

@@ -29,11 +29,11 @@ int alloc_xenballooned_pages(int nr_pages, struct page **pages,
bool highmem);
void free_xenballooned_pages(int nr_pages, struct page **pages);
struct sys_device;
struct device;
#ifdef CONFIG_XEN_SELFBALLOONING
extern int register_xen_selfballooning(struct sys_device *sysdev);
extern int register_xen_selfballooning(struct device *dev);
#else
static inline int register_xen_selfballooning(struct sys_device *sysdev)
static inline int register_xen_selfballooning(struct device *dev)
{
return -ENOSYS;
}