- provide-dummy-devm_ioport_-if-has_ioport.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Provide dummy devm_ioport_* if !HAS_IOPORT
has been removed from the -mm tree.  Its filename was
     provide-dummy-devm_ioport_-if-has_ioport.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Provide dummy devm_ioport_* if !HAS_IOPORT
From: Russell King <rmk+lkml@xxxxxxxxxxxxxxxx>

Provide an dummy implementation of devm_ioport_map() and
devm_ioport_unmap() to allow drivers (eg, pata_platform) to build for
platforms where CONFIG_NO_IOPORT is selected.

Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Cc: Jeff Garzik <jeff@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/io.h |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff -puN include/linux/io.h~provide-dummy-devm_ioport_-if-has_ioport include/linux/io.h
--- a/include/linux/io.h~provide-dummy-devm_ioport_-if-has_ioport
+++ a/include/linux/io.h
@@ -33,9 +33,22 @@ int ioremap_page_range(unsigned long add
 /*
  * Managed iomap interface
  */
+#ifdef CONFIG_HAS_IOPORT
 void __iomem * devm_ioport_map(struct device *dev, unsigned long port,
 			       unsigned int nr);
 void devm_ioport_unmap(struct device *dev, void __iomem *addr);
+#else
+static inline void __iomem *devm_ioport_map(struct device *dev,
+					     unsigned long port,
+					     unsigned int nr)
+{
+	return NULL;
+}
+
+static inline void devm_ioport_unmap(struct device *dev, void __iomem *addr)
+{
+}
+#endif
 
 void __iomem * devm_ioremap(struct device *dev, unsigned long offset,
 			    unsigned long size);
_

Patches currently in -mm which might be from rmk+lkml@xxxxxxxxxxxxxxxx are

origin.patch
pata_platform-for-arm-riscpc.patch
git-kbuild.patch
driver_bfin_serial_core.patch
driver_bfin_serial_core-update.patch
make-dev-port-conditional-on-config-symbol.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux