static int mtk23d_open(struct inode *inode, struct file *file)
{
struct rk2818_23d_data *pdata = gpdata;
- //struct rk2818_23d_data *pdata = gpdata = pdev->dev.platform_data;
- struct platform_data *pdev = container_of(pdata, struct device, platform_data);
-
MODEMDBG("modem_open\n");
-
int ret = 0;
if(power_on)
{
power_on = 0;
modem_poweron_off(1);
}
- device_init_wakeup(&pdev, 1);
-
+ device_init_wakeup(pdata->dev, 1);
return 0;
}
-
static int mtk23d_release(struct inode *inode, struct file *file)
{
MODEMDBG("mtk23d_release\n");