/* * 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/clk.h> #include <linux/err.h> #include <linux/init.h> #include <linux/platform_device.h>
static int __init pdc_probe(struct platform_device *pdev) { struct clk *pclk, *hclk; pclk = clk_get(&pdev->dev, "pclk"); if (IS_ERR(pclk)) { dev_err(&pdev->dev, "no pclk defined\n"); return PTR_ERR(pclk); } hclk = clk_get(&pdev->dev, "hclk"); if (IS_ERR(hclk)) { dev_err(&pdev->dev, "no hclk defined\n"); clk_put(pclk); return PTR_ERR(hclk); } clk_enable(pclk); clk_enable(hclk); dev_info(&pdev->dev, "Atmel Peripheral DMA Controller enabled\n"); return 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Håvard Skinnemoen | 122 | 100.00% | 1 | 100.00% |
Total | 122 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Håvard Skinnemoen | 15 | 83.33% | 1 | 50.00% |
Uwe Kleine-König | 3 | 16.67% | 1 | 50.00% |
Total | 18 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Håvard Skinnemoen | 172 | 98.29% | 1 | 50.00% |
Uwe Kleine-König | 3 | 1.71% | 1 | 50.00% |
Total | 175 | 100.00% | 2 | 100.00% |