Skip to content

Commit

Permalink
ssb: Fix build for non-PCIhost
Browse files Browse the repository at this point in the history
This fixes a build error when PCMCIA-host support is built,
but PCI-host support is disabled.
Hell, who on earth would use such a weird configuration. :D

drivers/built-in.o: In function `ssb_attr_sprom_store':
(.text+0x1c4b79): undefined reference to `ssb_devices_freeze'
drivers/built-in.o: In function `ssb_attr_sprom_store':
(.text+0x1c4bb3): undefined reference to `ssb_devices_thaw'
make[1]: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Apr 8, 2008
1 parent fb14a7e commit d72bb40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ssb/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ int ssb_bus_suspend(struct ssb_bus *bus)
}
EXPORT_SYMBOL(ssb_bus_suspend);

#ifdef CONFIG_SSB_PCIHOST
#ifdef CONFIG_SSB_SPROM
int ssb_devices_freeze(struct ssb_bus *bus)
{
struct ssb_device *dev;
Expand Down Expand Up @@ -275,7 +275,7 @@ int ssb_devices_thaw(struct ssb_bus *bus)

return 0;
}
#endif /* CONFIG_SSB_PCIHOST */
#endif /* CONFIG_SSB_SPROM */

static void ssb_device_shutdown(struct device *dev)
{
Expand Down

0 comments on commit d72bb40

Please sign in to comment.