Commit 56c3b7d788c21eecf5641020fcf8e4e15d0c5eb0

Authored by Al Viro
Committed by Linus Torvalds
1 parent a553260618

[PATCH] ISA DMA Kconfig fixes - part 4 (irda)

* net/irda/irda_device.c::irda_setup_dma() made conditional on
   ISA_DMA_API (it uses helpers in question and irda is usable on
   platforms that don't have them at all - think of USB IRDA, for
   example).
 * irda drivers that depend on ISA DMA marked as dependent on
   ISA_DMA_API

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 2 changed files with 7 additions and 5 deletions Side-by-side Diff

drivers/net/irda/Kconfig
... ... @@ -310,7 +310,7 @@
310 310  
311 311 config NSC_FIR
312 312 tristate "NSC PC87108/PC87338"
313   - depends on IRDA
  313 + depends on IRDA && ISA_DMA_API
314 314 help
315 315 Say Y here if you want to build support for the NSC PC87108 and
316 316 PC87338 IrDA chipsets. This driver supports SIR,
... ... @@ -321,7 +321,7 @@
321 321  
322 322 config WINBOND_FIR
323 323 tristate "Winbond W83977AF (IR)"
324   - depends on IRDA
  324 + depends on IRDA && ISA_DMA_API
325 325 help
326 326 Say Y here if you want to build IrDA support for the Winbond
327 327 W83977AF super-io chipset. This driver should be used for the IrDA
... ... @@ -347,7 +347,7 @@
347 347  
348 348 config SMC_IRCC_FIR
349 349 tristate "SMSC IrCC (EXPERIMENTAL)"
350   - depends on EXPERIMENTAL && IRDA
  350 + depends on EXPERIMENTAL && IRDA && ISA_DMA_API
351 351 help
352 352 Say Y here if you want to build support for the SMC Infrared
353 353 Communications Controller. It is used in a wide variety of
... ... @@ -357,7 +357,7 @@
357 357  
358 358 config ALI_FIR
359 359 tristate "ALi M5123 FIR (EXPERIMENTAL)"
360   - depends on EXPERIMENTAL && IRDA
  360 + depends on EXPERIMENTAL && IRDA && ISA_DMA_API
361 361 help
362 362 Say Y here if you want to build support for the ALi M5123 FIR
363 363 Controller. The ALi M5123 FIR Controller is embedded in ALi M1543C,
... ... @@ -385,7 +385,7 @@
385 385  
386 386 config VIA_FIR
387 387 tristate "VIA VT8231/VT1211 SIR/MIR/FIR"
388   - depends on IRDA
  388 + depends on IRDA && ISA_DMA_API
389 389 help
390 390 Say Y here if you want to build support for the VIA VT8231
391 391 and VIA VT1211 IrDA controllers, found on the motherboards using
net/irda/irda_device.c
... ... @@ -470,6 +470,7 @@
470 470 }
471 471 EXPORT_SYMBOL(irda_device_unregister_dongle);
472 472  
  473 +#ifdef CONFIG_ISA_DMA_API
473 474 /*
474 475 * Function setup_dma (idev, buffer, count, mode)
475 476 *
... ... @@ -492,4 +493,5 @@
492 493 release_dma_lock(flags);
493 494 }
494 495 EXPORT_SYMBOL(irda_setup_dma);
  496 +#endif