/* This function is called while kernel-module is loaded  */
static int __init usb_gigaset_init(void)
/* This function is called while kernel-module is loaded  */
static int __init usb_gigaset_init(void)
{
	int result;
	driver = gigaset_initdriver(GIGASET_MINOR, GIGASET_MINORS,
				    GIGASET_MODULENAME, GIGASET_DEVNAME,
				    &ops, THIS_MODULE);
	if (driver == NULL)
		goto error;
	result = usb_register(&gigaset_usb_driver);
	if (result < 0) {
		pr_err("error %d registering USB driver\n", -result);
		goto error;
	}
	pr_info(DRIVER_DESC "\n");
	return 0;
error:
	if (driver)
		gigaset_freedriver(driver);
	driver = NULL;
	return -1;
}