| * Copyright (C) 2006 Atmel Corporation |
| * 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. |
| #include <linux/platform_device.h> |
| static int __init pdc_probe(struct platform_device *pdev) |
| pclk = clk_get(&pdev->dev, "pclk"); |
| dev_err(&pdev->dev, "no pclk defined\n"); |
| hclk = clk_get(&pdev->dev, "hclk"); |
| dev_err(&pdev->dev, "no hclk defined\n"); |
| dev_info(&pdev->dev, "Atmel Peripheral DMA Controller enabled\n"); |
| static struct platform_driver pdc_driver = { |
| static int __init pdc_init(void) |
| return platform_driver_probe(&pdc_driver, pdc_probe); |