Skip to content

Commit

Permalink
staging/comedi/me4000: fix sparse warning "obsolete struct initializer"
Browse files Browse the repository at this point in the history
This patch fixes the sparse warnings in me4000.c:
me4000.c:122:1: warning: obsolete struct initializer, use C99 syntax
me4000.c:123:1: warning: obsolete struct initializer, use C99 syntax
me4000.c:124:1: warning: obsolete struct initializer, use C99 syntax
me4000.c:125:1: warning: obsolete struct initializer, use C99 syntax
by converting the struct to use C99 syntax

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent e8b754e commit 56aec8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/me4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ static int me4000_attach(struct comedi_device *dev,
struct comedi_devconfig *it);
static int me4000_detach(struct comedi_device *dev);
static struct comedi_driver driver_me4000 = {
driver_name: "me4000",
module : THIS_MODULE,
attach : me4000_attach,
detach : me4000_detach,
.driver_name = "me4000",
.module = THIS_MODULE,
.attach = me4000_attach,
.detach = me4000_detach,
};

/*-----------------------------------------------------------------------------
Expand Down

0 comments on commit 56aec8d

Please sign in to comment.