Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137301
b: refs/heads/master
c: 2b811bb
h: refs/heads/master
i:
  137299: 9d27a7f
v: v3
  • Loading branch information
Russell King authored and Russell King committed Feb 8, 2009
1 parent f9c8d8e commit ee5c063
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44dc9d027f1cb56625b1011d8725d2ab614c04e6
refs/heads/master: 2b811bb56a008f0f669a1bd82e4d077e75aa059a
46 changes: 0 additions & 46 deletions trunk/arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,45 +36,6 @@ static struct clk_functions *arch_clock;
* Standard clock functions defined in include/linux/clk.h
*-------------------------------------------------------------------------*/

#ifndef CONFIG_COMMON_CLKDEV
/*
* Returns a clock. Note that we first try to use device id on the bus
* and clock name. If this fails, we try to use clock name only.
*/
struct clk * clk_get(struct device *dev, const char *id)
{
struct clk *p, *clk = ERR_PTR(-ENOENT);
int idno;

if (dev == NULL || dev->bus != &platform_bus_type)
idno = -1;
else
idno = to_platform_device(dev)->id;

mutex_lock(&clocks_mutex);

list_for_each_entry(p, &clocks, node) {
if (p->id == idno && strcmp(id, p->name) == 0) {
clk = p;
goto found;
}
}

list_for_each_entry(p, &clocks, node) {
if (strcmp(id, p->name) == 0) {
clk = p;
break;
}
}

found:
mutex_unlock(&clocks_mutex);

return clk;
}
EXPORT_SYMBOL(clk_get);
#endif

int clk_enable(struct clk *clk)
{
unsigned long flags;
Expand Down Expand Up @@ -147,13 +108,6 @@ unsigned long clk_get_rate(struct clk *clk)
}
EXPORT_SYMBOL(clk_get_rate);

#ifndef CONFIG_COMMON_CLKDEV
void clk_put(struct clk *clk)
{
}
EXPORT_SYMBOL(clk_put);
#endif

/*-------------------------------------------------------------------------
* Optional clock functions defined in include/linux/clk.h
*-------------------------------------------------------------------------*/
Expand Down

0 comments on commit ee5c063

Please sign in to comment.