X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fmacintosh%2Fadb.c;h=f729eebf771f80447fd64a42a3919d0fd52d888a;hb=dfcba200679dc3f62212154b65b40b835ce69ab7;hp=d43ea81d6df9bcae26441a61edba92349d5308a1;hpb=34161db6b14d984fb9b06c735b7b42f8803f6851;p=mv-sheeva.git diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index d43ea81d6df..f729eebf771 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c @@ -828,7 +828,7 @@ static ssize_t adb_write(struct file *file, const char __user *buf, if (!access_ok(VERIFY_READ, buf, count)) return -EFAULT; - req = (struct adb_request *) kmalloc(sizeof(struct adb_request), + req = kmalloc(sizeof(struct adb_request), GFP_KERNEL); if (req == NULL) return -ENOMEM; @@ -885,7 +885,7 @@ out: return ret; } -static struct file_operations adb_fops = { +static const struct file_operations adb_fops = { .owner = THIS_MODULE, .llseek = no_llseek, .read = adb_read,