/* * 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. * * Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org> * Copyright (C) 2013 John Crispin <john@phrozen.org> */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/clkdev.h> #include <linux/clk.h> #include <asm/time.h> #include "common.h" struct clk { struct clk_lookup cl; unsigned long rate; };
void ralink_clk_add(const char *dev, unsigned long rate) { struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); if (!clk) panic("failed to add clock"); clk->cl.dev_id = dev; clk->cl.clk = clk; clk->rate = rate; clkdev_add(&clk->cl); }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
john crispin | john crispin | 69 | 98.57% | 1 | 50.00% |
ralf baechle | ralf baechle | 1 | 1.43% | 1 | 50.00% |
Total | 70 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john crispin | john crispin | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john crispin | john crispin | 9 | 100.00% | 1 | 100.00% |
Total | 9 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john crispin | john crispin | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john crispin | john crispin | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john crispin | john crispin | 73 | 98.65% | 2 | 66.67% |
marc zyngier | marc zyngier | 1 | 1.35% | 1 | 33.33% |
Total | 74 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john crispin | john crispin | 251 | 99.21% | 4 | 66.67% |
ralf baechle | ralf baechle | 1 | 0.40% | 1 | 16.67% |
marc zyngier | marc zyngier | 1 | 0.40% | 1 | 16.67% |
Total | 253 | 100.00% | 6 | 100.00% |