From 02424a268bcafd7148d342ac6a3af4fc06c18cae Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 17 Mar 2009 16:27:57 -0700 Subject: [PATCH] Use spl_device_* macro's for portability. --- module/zpios/zpios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/zpios/zpios.c b/module/zpios/zpios.c index e710d910d6..fb508d7bbf 100644 --- a/module/zpios/zpios.c +++ b/module/zpios/zpios.c @@ -1263,7 +1263,7 @@ zpios_init(void) goto error; } - class_device_create(zpios_class, NULL, dev, NULL, "zpios"); + spl_device_create(zpios_class, NULL, dev, NULL, "zpios"); return 0; error: printk(KERN_ERR "ZPIOS: Error registering zpios device, %d\n", rc); @@ -1275,7 +1275,7 @@ zpios_fini(void) { dev_t dev = MKDEV(ZPIOS_MAJOR, 0); - class_device_destroy(zpios_class, dev); + spl_device_destroy(zpios_class, NULL, dev); class_destroy(zpios_class); cdev_del(&zpios_cdev);