Change an instance of "cr" to CRED().  Add registration for zfs_ioc_(create,remove)_minor and
zfs_ioc_events_(next,clear) functions.