mcp-sa11x0.c (e36e26a8b761d1a601e284e2b5d8aff84de3b756) mcp-sa11x0.c (c4592ce4e8f69d78711d53f0a42ec1b4dbf00cde)
1/*
2 * linux/drivers/mfd/mcp-sa11x0.c
3 *
4 * Copyright (C) 2001-2005 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License.

--- 13 unchanged lines hidden (view full) ---

22
23#include <mach/hardware.h>
24#include <asm/mach-types.h>
25#include <asm/system.h>
26#include <mach/mcp.h>
27
28#include <mach/assabet.h>
29
1/*
2 * linux/drivers/mfd/mcp-sa11x0.c
3 *
4 * Copyright (C) 2001-2005 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License.

--- 13 unchanged lines hidden (view full) ---

22
23#include <mach/hardware.h>
24#include <asm/mach-types.h>
25#include <asm/system.h>
26#include <mach/mcp.h>
27
28#include <mach/assabet.h>
29
30#define DRIVER_NAME "sa11x0-mcp"
30
31struct mcp_sa11x0 {
32 u32 mccr0;
33 u32 mccr1;
34};
35
36#define priv(mcp) ((struct mcp_sa11x0 *)mcp_priv(mcp))
37

--- 184 unchanged lines hidden (view full) ---

222 struct mcp *mcp = platform_get_drvdata(dev);
223
224 Ser4MCCR1 = priv(mcp)->mccr1;
225 Ser4MCCR0 = priv(mcp)->mccr0;
226
227 return 0;
228}
229
31
32struct mcp_sa11x0 {
33 u32 mccr0;
34 u32 mccr1;
35};
36
37#define priv(mcp) ((struct mcp_sa11x0 *)mcp_priv(mcp))
38

--- 184 unchanged lines hidden (view full) ---

223 struct mcp *mcp = platform_get_drvdata(dev);
224
225 Ser4MCCR1 = priv(mcp)->mccr1;
226 Ser4MCCR0 = priv(mcp)->mccr0;
227
228 return 0;
229}
230
230/*
231 * The driver for the SA11x0 MCP port.
232 */
233MODULE_ALIAS("platform:sa11x0-mcp");
234
235static struct platform_driver mcp_sa11x0_driver = {
236 .probe = mcp_sa11x0_probe,
237 .remove = mcp_sa11x0_remove,
238 .suspend = mcp_sa11x0_suspend,
239 .resume = mcp_sa11x0_resume,
240 .driver = {
231static struct platform_driver mcp_sa11x0_driver = {
232 .probe = mcp_sa11x0_probe,
233 .remove = mcp_sa11x0_remove,
234 .suspend = mcp_sa11x0_suspend,
235 .resume = mcp_sa11x0_resume,
236 .driver = {
241 .name = "sa11x0-mcp",
237 .name = DRIVER_NAME,
238 .owner = THIS_MODULE,
242 },
243};
244
245/*
246 * This needs re-working
247 */
248module_platform_driver(mcp_sa11x0_driver);
249
239 },
240};
241
242/*
243 * This needs re-working
244 */
245module_platform_driver(mcp_sa11x0_driver);
246
247MODULE_ALIAS("platform:" DRIVER_NAME);
250MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>");
251MODULE_DESCRIPTION("SA11x0 multimedia communications port driver");
252MODULE_LICENSE("GPL");
248MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>");
249MODULE_DESCRIPTION("SA11x0 multimedia communications port driver");
250MODULE_LICENSE("GPL");