firewire: ohci: cleanups and fix for nonstandard build without debug facility
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 2 Apr 2010 12:05:02 +0000 (14:05 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 10 Apr 2010 14:51:14 +0000 (16:51 +0200)
commit5da3dac8d99c9933f12286fd73fa18e26f768bea
tree8db17c8e7996c92381920a0e97380a5adc8a6d7a
parent35d999b12037b5ea0152889232629c25d45b0e26
firewire: ohci: cleanups and fix for nonstandard build without debug facility

1) Clean up two function names:  The ohci_ prefix is only used in names
of fw_card_driver hooks.  There were two unnecessary exceptions.

2) Replace empty macros by empty inline functions so that call parameter
type checking is available in #ifndef'd builds.

3) CONFIG_FIREWIRE_OHCI_DEBUG is currently a hidden kconfig variable,
hence is not going to be switched off by anybody.  Still, it can be
switched off but then compilation will fail in ohci_enable() at the
expression param_debug & OHCI_PARAM_DEBUG_BUSRESETS.  Add the necessary
definitions in the nonstandard case.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c