rtc-pl031.c (7483d45f0aee3afc0646d185cabd4af9f6cab58c) rtc-pl031.c (2f6e5f9458646263d3d9ffadd5e11e3d8d15a7d0)
1/*
2 * drivers/rtc/rtc-pl031.c
3 *
4 * Real Time Clock interface for ARM AMBA PrimeCell 031 RTC
5 *
6 * Author: Deepak Saxena <dsaxena@plexity.net>
7 *
8 * Copyright 2006 (c) MontaVista Software, Inc.

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

347 ldata->rtc = rtc_device_register("pl031", &adev->dev, ops,
348 THIS_MODULE);
349 if (IS_ERR(ldata->rtc)) {
350 ret = PTR_ERR(ldata->rtc);
351 goto out_no_rtc;
352 }
353
354 if (request_irq(adev->irq[0], pl031_interrupt,
1/*
2 * drivers/rtc/rtc-pl031.c
3 *
4 * Real Time Clock interface for ARM AMBA PrimeCell 031 RTC
5 *
6 * Author: Deepak Saxena <dsaxena@plexity.net>
7 *
8 * Copyright 2006 (c) MontaVista Software, Inc.

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

347 ldata->rtc = rtc_device_register("pl031", &adev->dev, ops,
348 THIS_MODULE);
349 if (IS_ERR(ldata->rtc)) {
350 ret = PTR_ERR(ldata->rtc);
351 goto out_no_rtc;
352 }
353
354 if (request_irq(adev->irq[0], pl031_interrupt,
355 IRQF_DISABLED, "rtc-pl031", ldata)) {
355 0, "rtc-pl031", ldata)) {
356 ret = -EIO;
357 goto out_no_irq;
358 }
359
360 return 0;
361
362out_no_irq:
363 rtc_device_unregister(ldata->rtc);

--- 86 unchanged lines hidden ---
356 ret = -EIO;
357 goto out_no_irq;
358 }
359
360 return 0;
361
362out_no_irq:
363 rtc_device_unregister(ldata->rtc);

--- 86 unchanged lines hidden ---