From: 张昊 Date: Mon, 28 Nov 2011 07:10:41 +0000 (+0800) Subject: fix building error mtd23d X-Git-Tag: firefly_0821_release~9733^2~17 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=10ed7070954575122bb97896fc27e088b517eea8;p=firefly-linux-kernel-4.4.55.git fix building error mtd23d --- diff --git a/drivers/misc/mtk23d.c b/drivers/misc/mtk23d.c index 8f8dae623395..51a2198f5461 100755 --- a/drivers/misc/mtk23d.c +++ b/drivers/misc/mtk23d.c @@ -291,9 +291,9 @@ int modem_poweron_off(int on_off) static int power_on =1; static int mtk23d_open(struct inode *inode, struct file *file) { - //struct rk2818_23d_data *pdata = gpdata; + 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); + struct platform_data *pdev = container_of(pdata, struct device, platform_data); MODEMDBG("modem_open\n"); @@ -303,7 +303,7 @@ static int mtk23d_open(struct inode *inode, struct file *file) power_on = 0; modem_poweron_off(1); } - device_init_wakeup(&pdev->dev, 1); + device_init_wakeup(&pdev, 1); return 0; }