Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191590
b: refs/heads/master
c: 2e733b3
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Mar 9, 2010
1 parent 7db5113 commit b72a684
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: 51a5006afcd13176276f0935ee57c4cc6f210e83
refs/heads/master: 2e733b3f84fa9c2ae60513c5f7b56d599ed2ae02
13 changes: 10 additions & 3 deletions trunk/arch/sh/kernel/clkdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#include <linux/string.h>
#include <linux/mutex.h>
#include <linux/clk.h>
#include <linux/slab.h>
#include <linux/bootmem.h>
#include <linux/mm.h>
#include <asm/clock.h>
#include <asm/clkdev.h>

Expand Down Expand Up @@ -103,12 +106,16 @@ struct clk_lookup_alloc {
char con_id[MAX_CON_ID];
};

struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id,
const char *dev_fmt, ...)
struct clk_lookup * __init_refok
clkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, ...)
{
struct clk_lookup_alloc *cla;

cla = kzalloc(sizeof(*cla), GFP_KERNEL);
if (!slab_is_available())
cla = alloc_bootmem_low_pages(sizeof(*cla));
else
cla = kzalloc(sizeof(*cla), GFP_KERNEL);

if (!cla)
return NULL;

Expand Down

0 comments on commit b72a684

Please sign in to comment.