[PATCH] pcmcia: size reduction if ioctl isn't compiled
If the kernel is configured to not include the deprecated PCMCIA ioctl, some code doesn't need to be built. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include "cs_internal.h"
|
||||
|
||||
|
||||
#ifdef CONFIG_PCMCIA_IOCTL
|
||||
|
||||
#ifdef CONFIG_PCMCIA_PROBE
|
||||
|
||||
static int adjust_irq(struct pcmcia_socket *s, adjust_t *adj)
|
||||
@@ -97,6 +99,8 @@ int pcmcia_adjust_resource_info(adjust_t *adj)
|
||||
}
|
||||
EXPORT_SYMBOL(pcmcia_adjust_resource_info);
|
||||
|
||||
#endif
|
||||
|
||||
int pcmcia_validate_mem(struct pcmcia_socket *s)
|
||||
{
|
||||
if (s->resource_ops->validate_mem)
|
||||
|
Reference in New Issue
Block a user