Exemplo n.º 1
0
static void pantech_debug_work_init(struct work_struct *work)
{
	int	rc;	
	
	printk(KERN_ERR "%s is called\n", __func__);
	rc = msm_nv_rpc_connect();
	if (rc == 0) {
		init_pantech_debug_option();
	}
	else {
		printk(KERN_ERR "%s : msm_nv_rpc_connect error(%d)\n", 
			__func__, rc);
	}
}
static int __init pantech_debug_opt_init(void)
{
	int	rc;

	printk(KERN_INFO "%s is called\n", __func__);

	rc = platform_driver_register(&pantech_debug_opt_driver);
	if (rc < 0) {
		printk(KERN_ERR "%s: platform_driver_register rc = %d\n",
			__func__, rc);
	}

	rc = msm_nv_rpc_connect();
	if (rc == 0) {
		init_pantech_debug_option();
	}
	else {
		printk(KERN_ERR "%s : msm_nv_rpc_connect error(%d)\n", 
			__func__, rc);
	}

	return	rc;
}