Commit 5c5302d4 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] (21/25) cdrom->reset() cleanup

	invalidate_buffers() pulled from cdrom ->reset() into its caller.
At that point only cdrom.c using cdi->dev.  That will play a bit later.
parent ffe63c1e
......@@ -1608,6 +1608,7 @@ int cdrom_ioctl(struct inode *ip, struct file *fp, unsigned int cmd,
cdinfo(CD_DO_IOCTL, "entering CDROM_RESET\n");
if (!CDROM_CAN(CDC_RESET))
return -ENOSYS;
invalidate_buffers(dev);
return cdo->reset(cdi);
}
......
......@@ -303,7 +303,6 @@ int sr_get_mcn(struct cdrom_device_info *cdi, struct cdrom_mcn *mcn)
int sr_reset(struct cdrom_device_info *cdi)
{
invalidate_buffers(cdi->dev);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment