Date:2010-06-28 01:27:35 (13 years 5 months ago)
Author:Lars C.
Commit:bdb548bf593a64c85e3d382b23d36d3485e068e9
Message:RTC: JZ4740: Whitespace cleanups

Files: drivers/rtc/rtc-jz4740.c (4 diffs)

Change Details

drivers/rtc/rtc-jz4740.c
11/*
22 * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
3 * JZ4720/JZ4740 SoC RTC driver
3 * JZ4740 SoC RTC driver
44 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
88 * option) any later version.
99 *
10 * You should have received a copy of the GNU General Public License along
11 * with this program; if not, write to the Free Software Foundation, Inc.,
10 * You should have received a copy of the GNU General Public License along
11 * with this program; if not, write to the Free Software Foundation, Inc.,
1212 * 675 Mass Ave, Cambridge, MA 02139, USA.
1313 *
1414 */
...... 
6060}
6161
6262static inline void jz4740_rtc_reg_write(struct jz4740_rtc *rtc, size_t reg,
63                    uint32_t val)
63    uint32_t val)
6464{
6565    jz4740_rtc_wait_write_ready(rtc);
6666    writel(val, rtc->base + reg);
6767}
6868
6969static void jz4740_rtc_ctrl_set_bits(struct jz4740_rtc *rtc, uint32_t mask,
70                    uint32_t val)
70    uint32_t val)
7171{
7272    unsigned long flags;
7373    uint32_t ctrl;
...... 
221221    rtc = kmalloc(sizeof(*rtc), GFP_KERNEL);
222222
223223    rtc->irq = platform_get_irq(pdev, 0);
224
225224    if (rtc->irq < 0) {
226225        ret = -ENOENT;
227226        dev_err(&pdev->dev, "Failed to get platform irq\n");
...... 
256255
257256    rtc->rtc = rtc_device_register(pdev->name, &pdev->dev, &jz4740_rtc_ops,
258257                    THIS_MODULE);
259
260258    if (IS_ERR(rtc->rtc)) {
261259        ret = PTR_ERR(rtc->rtc);
262260        dev_err(&pdev->dev, "Failed to register rtc device: %d\n", ret);

Archive Download the corresponding diff file



interactive