OSDN Git Service

staging: rts5139: Make variables inside #ifdef CONFIG_PM
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 6 Apr 2014 13:37:25 +0000 (15:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 22:30:53 +0000 (15:30 -0700)
commit0f18a27787a340b26c4f64fae8f2bb103f50b546
treeb9ab5f3705033cde6f3cedbd8715fa684de2d2b2
parentdbdb85221af150e8ef570c333cb4729a98cc82c8
staging: rts5139: Make variables inside #ifdef CONFIG_PM

If CONFIG_PM=n:

drivers/staging/rts5139/rts51x_transport.c:649: warning: ‘media_not_present’ defined but not used
drivers/staging/rts5139/rts51x_transport.c:651: warning: ‘invalid_cmd_field’ defined but not used

Move the variables inside the #ifdef CONFIG_PM, and make them const while
we're at it.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5139/rts51x_transport.c