Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355339
b: refs/heads/master
c: f9492fd
h: refs/heads/master
i:
  355337: 5d1c98d
  355335: e96be38
v: v3
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Jan 25, 2013
1 parent d8076ca commit 777be7c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 26 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: f9165132c5ee681235068857e4f86c7ecc5a4617
refs/heads/master: f9492fda70c87b410e61675095212dc806bdf615
10 changes: 1 addition & 9 deletions trunk/drivers/sh/pfc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@ config SH_PFC
depends on GENERIC_GPIO
select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB
select PINCTRL_SH_PFC
def_bool y

#
# Placeholder for now, rehome to drivers/pinctrl once the PFC APIs
# have settled.
#
config PINCTRL_SH_PFC
tristate "SuperH PFC pin controller driver"
depends on SH_PFC
select PINCTRL
select PINMUX
select PINCONF
def_bool y

config GPIO_SH_PFC
tristate "SuperH PFC GPIO support"
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/sh/pfc/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
obj-y += core.o
obj-$(CONFIG_PINCTRL_SH_PFC) += pinctrl.o
sh-pfc-objs = core.o pinctrl.o
obj-y += sh-pfc.o
obj-$(CONFIG_GPIO_SH_PFC) += gpio.o
15 changes: 3 additions & 12 deletions trunk/drivers/sh/pfc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#define pr_fmt(fmt) "sh_pfc " KBUILD_MODNAME ": " fmt
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/errno.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -497,7 +497,6 @@ int sh_pfc_config_gpio(struct sh_pfc *pfc, unsigned gpio, int pinmux_type,
out_err:
return -1;
}
EXPORT_SYMBOL_GPL(sh_pfc_config_gpio);

int register_sh_pfc(struct sh_pfc_platform_data *pdata)
{
Expand Down Expand Up @@ -528,17 +527,9 @@ int register_sh_pfc(struct sh_pfc_platform_data *pdata)
/*
* Initialize pinctrl bindings first
*/
initroutine = symbol_request(sh_pfc_register_pinctrl);
if (initroutine) {
ret = (*initroutine)(&sh_pfc);
symbol_put_addr(initroutine);

if (unlikely(ret != 0))
goto err;
} else {
pr_err("failed to initialize pinctrl bindings\n");
ret = sh_pfc_register_pinctrl(&sh_pfc);
if (unlikely(ret != 0))
goto err;
}

/*
* Then the GPIO chip
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/sh/pfc/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
#define DRV_NAME "pinctrl-sh_pfc"

#define pr_fmt(fmt) DRV_NAME " " KBUILD_MODNAME ": " fmt
#define pr_fmt(fmt) KBUILD_MODNAME " pinctrl: " fmt

#include <linux/init.h>
#include <linux/module.h>
Expand Down Expand Up @@ -521,7 +521,6 @@ int sh_pfc_register_pinctrl(struct sh_pfc *pfc)

return sh_pfc_pinctrl_init();
}
EXPORT_SYMBOL_GPL(sh_pfc_register_pinctrl);

static void __exit sh_pfc_pinctrl_exit(void)
{
Expand Down

0 comments on commit 777be7c

Please sign in to comment.