From 69bdec991327bfcdbc581d71b008504aa88c1bd2 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 1 Oct 2009 16:49:12 -0700 Subject: [PATCH] Update to use spl_module_{init,exit}() macro API. --- module/zpios/zpios.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/zpios/zpios.c b/module/zpios/zpios.c index 268e2c3d5e..ecffb02ac0 100644 --- a/module/zpios/zpios.c +++ b/module/zpios/zpios.c @@ -1241,7 +1241,7 @@ static struct cdev zpios_cdev = { .kobj = { .name = ZPIOS_NAME, }, }; -static int __init +static int zpios_init(void) { dev_t dev; @@ -1278,7 +1278,7 @@ error: return rc; } -static void +static int zpios_fini(void) { dev_t dev = MKDEV(ZPIOS_MAJOR, 0); @@ -1288,11 +1288,11 @@ zpios_fini(void) cdev_del(&zpios_cdev); unregister_chrdev_region(dev, ZPIOS_MINORS); - return; + return 0; } -module_init(zpios_init); -module_exit(zpios_fini); +spl_module_init(zpios_init); +spl_module_exit(zpios_fini); MODULE_AUTHOR("LLNL / Sun"); MODULE_DESCRIPTION("Kernel PIOS implementation");