]> err.no Git - linux-2.6/commitdiff
mmc: Move core functions to subdir
authorPierre Ossman <drzeus@drzeus.cx>
Wed, 28 Feb 2007 14:33:10 +0000 (15:33 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 1 May 2007 11:04:18 +0000 (13:04 +0200)
Create a "core" subdirectory to house the central bus handling
functions.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/Makefile
drivers/mmc/core/Makefile [new file with mode: 0644]
drivers/mmc/core/core.c [moved from drivers/mmc/mmc.c with 99% similarity]
drivers/mmc/core/core.h [moved from drivers/mmc/mmc.h with 91% similarity]
drivers/mmc/core/sysfs.c [moved from drivers/mmc/mmc_sysfs.c with 99% similarity]
include/linux/mmc/card.h
include/linux/mmc/core.h [moved from include/linux/mmc/mmc.h with 97% similarity]
include/linux/mmc/host.h

index 4d2bdfeb8d7616b3528cedfcf4ff469ca66ba4fc..9979f5e9765bd8e317dbc19a822ffd154733a3d2 100644 (file)
@@ -6,12 +6,7 @@ ifeq ($(CONFIG_MMC_DEBUG),y)
        EXTRA_CFLAGS            += -DDEBUG
 endif
 
-#
-# Core
-#
-obj-$(CONFIG_MMC)              += mmc_core.o
-mmc_core-y                     := mmc.o mmc_sysfs.o
-
+obj-$(CONFIG_MMC)              += core/
 obj-$(CONFIG_MMC)              += card/
 obj-$(CONFIG_MMC)              += host/
 
diff --git a/drivers/mmc/core/Makefile b/drivers/mmc/core/Makefile
new file mode 100644 (file)
index 0000000..f911fbd
--- /dev/null
@@ -0,0 +1,11 @@
+#
+# Makefile for the kernel mmc core.
+#
+
+ifeq ($(CONFIG_MMC_DEBUG),y)
+       EXTRA_CFLAGS            += -DDEBUG
+endif
+
+obj-$(CONFIG_MMC)              += mmc_core.o
+mmc_core-y                     := core.o sysfs.o
+
similarity index 99%
rename from drivers/mmc/mmc.c
rename to drivers/mmc/core/core.c
index 3f50b8882c89cae9ff3c58e5547b3fe4711fe0b9..334e663e465b6fc4eee89247119d11ce036faef3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  linux/drivers/mmc/mmc.c
+ *  linux/drivers/mmc/core/core.c
  *
  *  Copyright (C) 2003-2004 Russell King, All Rights Reserved.
  *  SD support Copyright (C) 2004 Ian Molton, All Rights Reserved.
@@ -25,7 +25,7 @@
 #include <linux/mmc/host.h>
 #include <linux/mmc/protocol.h>
 
-#include "mmc.h"
+#include "core.h"
 
 #define CMD_RETRIES    3
 
similarity index 91%
rename from drivers/mmc/mmc.h
rename to drivers/mmc/core/core.h
index 149affe0b6860772c75ff0eb9c87dc03f69b7f52..076cb2f49a0f8233a8dc720d212da7c837f7043f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  linux/drivers/mmc/mmc.h
+ *  linux/drivers/mmc/core/core.h
  *
  *  Copyright (C) 2003 Russell King, All Rights Reserved.
  *
@@ -7,8 +7,8 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#ifndef _MMC_H
-#define _MMC_H
+#ifndef _MMC_CORE_H
+#define _MMC_CORE_H
 /* core-internal functions */
 void mmc_init_card(struct mmc_card *card, struct mmc_host *host);
 int mmc_register_card(struct mmc_card *card);
similarity index 99%
rename from drivers/mmc/mmc_sysfs.c
rename to drivers/mmc/core/sysfs.c
index 06f264b2f79ce560dc55baaa08930e41db02f673..bf9a5f8beb868dc9a4f48fec3a796fbd2b279132 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  linux/drivers/mmc/mmc_sysfs.c
+ *  linux/drivers/mmc/core/sysfs.c
  *
  *  Copyright (C) 2003 Russell King, All Rights Reserved.
  *
@@ -18,7 +18,7 @@
 #include <linux/mmc/card.h>
 #include <linux/mmc/host.h>
 
-#include "mmc.h"
+#include "core.h"
 
 #define dev_to_mmc_card(d)     container_of(d, struct mmc_card, dev)
 #define to_mmc_driver(d)       container_of(d, struct mmc_driver, drv)
index 7d98990ac94e33fe8e2558c450fa0f585910eaeb..800425e051654bc4dc855244aad22392c80d318f 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef LINUX_MMC_CARD_H
 #define LINUX_MMC_CARD_H
 
-#include <linux/mmc/mmc.h>
+#include <linux/mmc/core.h>
 
 struct mmc_cid {
        unsigned int            manfid;
similarity index 97%
rename from include/linux/mmc/mmc.h
rename to include/linux/mmc/core.h
index b3d80efc64340efcbbef497f1081d3803d84b202..d8fd66cf28becc26fe08ff21c1e2075ef8304a18 100644 (file)
@@ -1,12 +1,12 @@
 /*
- *  linux/include/linux/mmc/mmc.h
+ *  linux/include/linux/mmc/core.h
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#ifndef MMC_H
-#define MMC_H
+#ifndef LINUX_MMC_CORE_H
+#define LINUX_MMC_CORE_H
 
 #include <linux/interrupt.h>
 #include <linux/device.h>
index 6ea3c0ea3e157ec54758e60783905578132adb51..43bf6a5c398d59e3b14ea2931e5afbb99ffb3809 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef LINUX_MMC_HOST_H
 #define LINUX_MMC_HOST_H
 
-#include <linux/mmc/mmc.h>
+#include <linux/mmc/core.h>
 
 struct mmc_ios {
        unsigned int    clock;                  /* clock rate */