]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/lp.c
Apple SMC driver (hardware monitoring and control)
[linux-2.6-omap-h63xx.git] / drivers / char / lp.c
index b70b5388b5a81774b5050574cbd2383de0662455..b51d08be0bcfe5b908b6f4145823005657140e27 100644 (file)
@@ -525,7 +525,7 @@ static int lp_open(struct inode * inode, struct file * file)
                        return -EIO;
                }
        }
-       lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
+       lp_table[minor].lp_buffer = kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
        if (!lp_table[minor].lp_buffer) {
                LP_F(minor) &= ~LP_BUSY;
                return -ENOMEM;