Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355407
b: refs/heads/master
c: e854547
h: refs/heads/master
i:
  355405: d225876
  355403: ffb5bd8
  355399: c5731c3
  355391: f3da6bc
v: v3
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Jan 25, 2013
1 parent 2f74125 commit 0c8a3cd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 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: d9b8f244b909cdff163b012ff7137337f14b4ab8
refs/heads/master: e854547bfa55660e088dffa640e7eaac61833c1a
2 changes: 1 addition & 1 deletion trunk/arch/sh/include/asm/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#endif

#define ARCH_NR_GPIOS 512
#include <linux/sh_pfc.h>
#include <asm-generic/gpio.h>

#ifdef CONFIG_GPIOLIB

Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/sh/include/cpu-common/cpu/pfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@

#include <linux/types.h>

struct pinmux_info;
struct resource;

int sh_pfc_register(const char *name,
struct resource *resource, u32 num_resources);
int sh_pfc_register_info(const char *name,
struct resource *resource, u32 num_resources,
struct pinmux_info *pdata);

#endif /* __ARCH_SH_CPU_PFC_H__ */
13 changes: 1 addition & 12 deletions trunk/arch/sh/kernel/cpu/pfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,15 @@
#include <cpu/pfc.h>

static struct platform_device sh_pfc_device = {
.name = "sh-pfc",
.id = -1,
};

int __init sh_pfc_register(const char *name,
struct resource *resource, u32 num_resources)
{
if (name)
sh_pfc_device.name = name;
sh_pfc_device.name = name;
sh_pfc_device.num_resources = num_resources;
sh_pfc_device.resource = resource;

return platform_device_register(&sh_pfc_device);
}

int __init sh_pfc_register_info(const char *name,
struct resource *resource, u32 num_resources,
struct pinmux_info *pdata)
{
sh_pfc_device.dev.platform_data = pdata;

return sh_pfc_register(name, resource, num_resources);
}

0 comments on commit 0c8a3cd

Please sign in to comment.