aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-02-28 09:33:10 -0500
committerPierre Ossman <drzeus@drzeus.cx>2007-05-01 07:04:18 -0400
commitaaac1b470bd0dccb30912356617069dc6199cc80 (patch)
tree123316b4a6c10bf2e884d0469994f3435d03e22c
parentb855885e3b60cf6f9452848712a62517b94583eb (diff)
mmc: Move core functions to subdir
Create a "core" subdirectory to house the central bus handling functions. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
-rw-r--r--drivers/mmc/Makefile7
-rw-r--r--drivers/mmc/core/Makefile11
-rw-r--r--drivers/mmc/core/core.c (renamed from drivers/mmc/mmc.c)4
-rw-r--r--drivers/mmc/core/core.h (renamed from drivers/mmc/mmc.h)6
-rw-r--r--drivers/mmc/core/sysfs.c (renamed from drivers/mmc/mmc_sysfs.c)4
-rw-r--r--include/linux/mmc/card.h2
-rw-r--r--include/linux/mmc/core.h (renamed from include/linux/mmc/mmc.h)6
-rw-r--r--include/linux/mmc/host.h2
8 files changed, 24 insertions, 18 deletions
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile
index 4d2bdfeb8d76..9979f5e9765b 100644
--- a/drivers/mmc/Makefile
+++ b/drivers/mmc/Makefile
@@ -6,12 +6,7 @@ ifeq ($(CONFIG_MMC_DEBUG),y)
6 EXTRA_CFLAGS += -DDEBUG 6 EXTRA_CFLAGS += -DDEBUG
7endif 7endif
8 8
9# 9obj-$(CONFIG_MMC) += core/
10# Core
11#
12obj-$(CONFIG_MMC) += mmc_core.o
13mmc_core-y := mmc.o mmc_sysfs.o
14
15obj-$(CONFIG_MMC) += card/ 10obj-$(CONFIG_MMC) += card/
16obj-$(CONFIG_MMC) += host/ 11obj-$(CONFIG_MMC) += host/
17 12
diff --git a/drivers/mmc/core/Makefile b/drivers/mmc/core/Makefile
new file mode 100644
index 000000000000..f911fbd2845b
--- /dev/null
+++ b/drivers/mmc/core/Makefile
@@ -0,0 +1,11 @@
1#
2# Makefile for the kernel mmc core.
3#
4
5ifeq ($(CONFIG_MMC_DEBUG),y)
6 EXTRA_CFLAGS += -DDEBUG
7endif
8
9obj-$(CONFIG_MMC) += mmc_core.o
10mmc_core-y := core.o sysfs.o
11
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/core/core.c
index 3f50b8882c89..334e663e465b 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/core/core.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * linux/drivers/mmc/mmc.c 2 * linux/drivers/mmc/core/core.c
3 * 3 *
4 * Copyright (C) 2003-2004 Russell King, All Rights Reserved. 4 * Copyright (C) 2003-2004 Russell King, All Rights Reserved.
5 * SD support Copyright (C) 2004 Ian Molton, All Rights Reserved. 5 * SD support Copyright (C) 2004 Ian Molton, All Rights Reserved.
@@ -25,7 +25,7 @@
25#include <linux/mmc/host.h> 25#include <linux/mmc/host.h>
26#include <linux/mmc/protocol.h> 26#include <linux/mmc/protocol.h>
27 27
28#include "mmc.h" 28#include "core.h"
29 29
30#define CMD_RETRIES 3 30#define CMD_RETRIES 3
31 31
diff --git a/drivers/mmc/mmc.h b/drivers/mmc/core/core.h
index 149affe0b686..076cb2f49a0f 100644
--- a/drivers/mmc/mmc.h
+++ b/drivers/mmc/core/core.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * linux/drivers/mmc/mmc.h 2 * linux/drivers/mmc/core/core.h
3 * 3 *
4 * Copyright (C) 2003 Russell King, All Rights Reserved. 4 * Copyright (C) 2003 Russell King, All Rights Reserved.
5 * 5 *
@@ -7,8 +7,8 @@
7 * it under the terms of the GNU General Public License version 2 as 7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation. 8 * published by the Free Software Foundation.
9 */ 9 */
10#ifndef _MMC_H 10#ifndef _MMC_CORE_H
11#define _MMC_H 11#define _MMC_CORE_H
12/* core-internal functions */ 12/* core-internal functions */
13void mmc_init_card(struct mmc_card *card, struct mmc_host *host); 13void mmc_init_card(struct mmc_card *card, struct mmc_host *host);
14int mmc_register_card(struct mmc_card *card); 14int mmc_register_card(struct mmc_card *card);
diff --git a/drivers/mmc/mmc_sysfs.c b/drivers/mmc/core/sysfs.c
index 06f264b2f79c..bf9a5f8beb86 100644
--- a/drivers/mmc/mmc_sysfs.c
+++ b/drivers/mmc/core/sysfs.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * linux/drivers/mmc/mmc_sysfs.c 2 * linux/drivers/mmc/core/sysfs.c
3 * 3 *
4 * Copyright (C) 2003 Russell King, All Rights Reserved. 4 * Copyright (C) 2003 Russell King, All Rights Reserved.
5 * 5 *
@@ -18,7 +18,7 @@
18#include <linux/mmc/card.h> 18#include <linux/mmc/card.h>
19#include <linux/mmc/host.h> 19#include <linux/mmc/host.h>
20 20
21#include "mmc.h" 21#include "core.h"
22 22
23#define dev_to_mmc_card(d) container_of(d, struct mmc_card, dev) 23#define dev_to_mmc_card(d) container_of(d, struct mmc_card, dev)
24#define to_mmc_driver(d) container_of(d, struct mmc_driver, drv) 24#define to_mmc_driver(d) container_of(d, struct mmc_driver, drv)
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index 7d98990ac94e..800425e05165 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -10,7 +10,7 @@
10#ifndef LINUX_MMC_CARD_H 10#ifndef LINUX_MMC_CARD_H
11#define LINUX_MMC_CARD_H 11#define LINUX_MMC_CARD_H
12 12
13#include <linux/mmc/mmc.h> 13#include <linux/mmc/core.h>
14 14
15struct mmc_cid { 15struct mmc_cid {
16 unsigned int manfid; 16 unsigned int manfid;
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/core.h
index b3d80efc6434..d8fd66cf28be 100644
--- a/include/linux/mmc/mmc.h
+++ b/include/linux/mmc/core.h
@@ -1,12 +1,12 @@
1/* 1/*
2 * linux/include/linux/mmc/mmc.h 2 * linux/include/linux/mmc/core.h
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as 5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation. 6 * published by the Free Software Foundation.
7 */ 7 */
8#ifndef MMC_H 8#ifndef LINUX_MMC_CORE_H
9#define MMC_H 9#define LINUX_MMC_CORE_H
10 10
11#include <linux/interrupt.h> 11#include <linux/interrupt.h>
12#include <linux/device.h> 12#include <linux/device.h>
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 6ea3c0ea3e15..43bf6a5c398d 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -10,7 +10,7 @@
10#ifndef LINUX_MMC_HOST_H 10#ifndef LINUX_MMC_HOST_H
11#define LINUX_MMC_HOST_H 11#define LINUX_MMC_HOST_H
12 12
13#include <linux/mmc/mmc.h> 13#include <linux/mmc/core.h>
14 14
15struct mmc_ios { 15struct mmc_ios {
16 unsigned int clock; /* clock rate */ 16 unsigned int clock; /* clock rate */