powerpc: Use unlocked ioctl in nvram_64
The ioctl is only used for powermac systems and reads a partition number from an array which is initialized at boot time way before the nvram code is initialized. So it's safe to switch to unlocked_ioctl. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linuxppc-dev@ozlabs.org Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
17e3767561
commit
3b03fecd12
@@ -139,8 +139,8 @@ out:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dev_nvram_ioctl(struct inode *inode, struct file *file,
|
static long dev_nvram_ioctl(struct file *file, unsigned int cmd,
|
||||||
unsigned int cmd, unsigned long arg)
|
unsigned long arg)
|
||||||
{
|
{
|
||||||
switch(cmd) {
|
switch(cmd) {
|
||||||
#ifdef CONFIG_PPC_PMAC
|
#ifdef CONFIG_PPC_PMAC
|
||||||
@@ -169,11 +169,11 @@ static int dev_nvram_ioctl(struct inode *inode, struct file *file,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const struct file_operations nvram_fops = {
|
const struct file_operations nvram_fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.llseek = dev_nvram_llseek,
|
.llseek = dev_nvram_llseek,
|
||||||
.read = dev_nvram_read,
|
.read = dev_nvram_read,
|
||||||
.write = dev_nvram_write,
|
.write = dev_nvram_write,
|
||||||
.ioctl = dev_nvram_ioctl,
|
.unlocked_ioctl = dev_nvram_ioctl,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct miscdevice nvram_dev = {
|
static struct miscdevice nvram_dev = {
|
||||||
|
Reference in New Issue
Block a user