Skip to content

Commit

Permalink
staging: vt6655: Fix warnings if CONFIG_PM is not defined
Browse files Browse the repository at this point in the history
If staging:vt6655 is built without CONFIG_DM being defined, there are large
numbers of warnings of the following form due to use of #if instead of #ifdef:

In file included from drivers/staging/vt6655/upc.h:32,
                 from drivers/staging/vt6655/mac.h:39,
                 from drivers/staging/vt6655/wroute.c:34:
drivers/staging/vt6655/device.h:399:5: warning: "CONFIG_PM" is not defined

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed May 6, 2011
1 parent 4b455e0 commit 9fada0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ typedef struct __device_info {

struct pci_dev* pcid;

#if CONFIG_PM
#ifdef CONFIG_PM
u32 pci_state[16];
#endif

Expand Down

0 comments on commit 9fada0a

Please sign in to comment.