Commit 0f06abd3 authored by Laurent Navet's avatar Laurent Navet Committed by Dominik Brodowski

drivers: pcmcia: electra_cf.c fix checkpatch error and warnings

fix these checkpatch errors and warning:
- ERROR: "foo *           bar" should be "foo *bar"
- WARNING: please, no space before tabs
- WARNING: sizeof *cf should be sizeof(*cf)
- WARNING: space prohibited between function name and open parenthesis '('i
Signed-off-by: default avatarLaurent Navet <laurent.navet@gmail.com>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 46f533cc
...@@ -48,14 +48,14 @@ struct electra_cf_socket { ...@@ -48,14 +48,14 @@ struct electra_cf_socket {
struct platform_device *ofdev; struct platform_device *ofdev;
unsigned long mem_phys; unsigned long mem_phys;
void __iomem * mem_base; void __iomem *mem_base;
unsigned long mem_size; unsigned long mem_size;
void __iomem * io_virt; void __iomem *io_virt;
unsigned int io_base; unsigned int io_base;
unsigned int io_size; unsigned int io_size;
u_int irq; u_int irq;
struct resource iomem; struct resource iomem;
void __iomem * gpio_base; void __iomem *gpio_base;
int gpio_detect; int gpio_detect;
int gpio_vsense; int gpio_vsense;
int gpio_3v; int gpio_3v;
...@@ -202,7 +202,7 @@ static int electra_cf_probe(struct platform_device *ofdev) ...@@ -202,7 +202,7 @@ static int electra_cf_probe(struct platform_device *ofdev)
if (err) if (err)
return -EINVAL; return -EINVAL;
cf = kzalloc(sizeof *cf, GFP_KERNEL); cf = kzalloc(sizeof(*cf), GFP_KERNEL);
if (!cf) if (!cf)
return -ENOMEM; return -ENOMEM;
...@@ -372,5 +372,5 @@ static struct platform_driver electra_cf_driver = { ...@@ -372,5 +372,5 @@ static struct platform_driver electra_cf_driver = {
module_platform_driver(electra_cf_driver); module_platform_driver(electra_cf_driver);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR ("Olof Johansson <olof@lixom.net>"); MODULE_AUTHOR("Olof Johansson <olof@lixom.net>");
MODULE_DESCRIPTION("PA Semi Electra CF driver"); MODULE_DESCRIPTION("PA Semi Electra CF driver");
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