X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fchar%2Fsonypi.c;h=78237577b05ac57790ac34aee0f601b8aae23aa7;hb=2e175a90047a2dbc76fde169c990164895b25dfc;hp=c084149153de1050bb996fdb59cf017bd2137936;hpb=946b92437e550d6ed80213bf54a1f383e141aede;p=powerpc.git diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index c084149153..78237577b0 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include @@ -765,7 +764,7 @@ static void sonypi_setbluetoothpower(u8 state) sonypi_device.bluetooth_power = state; } -static void input_keyrelease(void *data) +static void input_keyrelease(struct work_struct *work) { struct sonypi_keypress kp; @@ -979,7 +978,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf, } if (ret > 0) { - struct inode *inode = file->f_dentry->d_inode; + struct inode *inode = file->f_path.dentry->d_inode; inode->i_atime = current_fs_time(inode->i_sb); } @@ -1412,7 +1411,7 @@ static int __devinit sonypi_probe(struct platform_device *dev) goto err_inpdev_unregister; } - INIT_WORK(&sonypi_device.input_work, input_keyrelease, NULL); + INIT_WORK(&sonypi_device.input_work, input_keyrelease); } sonypi_enable(0);