From patchwork Sat Dec 15 22:51:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1883811 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 65450DF2EF for ; Sat, 15 Dec 2012 22:51:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756124Ab2LOWvM (ORCPT ); Sat, 15 Dec 2012 17:51:12 -0500 Received: from perceval.ideasonboard.com ([95.142.166.194]:40094 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755905Ab2LOWvM (ORCPT ); Sat, 15 Dec 2012 17:51:12 -0500 Received: from avalon.quadriga.com (unknown [194.136.87.226]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6CDE835AF4; Sat, 15 Dec 2012 23:51:11 +0100 (CET) From: Laurent Pinchart To: linux-sh@vger.kernel.org Cc: Paul Mundt , Magnus Damm , Simon Horman , Linus Walleij , Kuninori Morimoto , Phil Edworthy , Nobuhiro Iwamatsu Subject: [PATCH v3 43/81] sh-pfc: Remove platform device registration Date: Sat, 15 Dec 2012 23:51:17 +0100 Message-Id: <1355611915-25060-44-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1355611915-25060-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1355611915-25060-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org The PFC platform device is now registered by arch code, remove the legacy registration mechanism. Signed-off-by: Laurent Pinchart Acked-by: Paul Mundt --- drivers/sh/pfc/core.c | 12 ------------ include/linux/sh_pfc.h | 10 ---------- 2 files changed, 0 insertions(+), 22 deletions(-) diff --git a/drivers/sh/pfc/core.c b/drivers/sh/pfc/core.c index b2e121d..9456c70 100644 --- a/drivers/sh/pfc/core.c +++ b/drivers/sh/pfc/core.c @@ -578,18 +578,6 @@ static struct platform_driver sh_pfc_driver = { }, }; -static struct platform_device sh_pfc_device = { - .name = DRV_NAME, - .id = -1, -}; - -int __init register_sh_pfc(struct sh_pfc_platform_data *pdata) -{ - sh_pfc_device.dev.platform_data = pdata; - - return platform_device_register(&sh_pfc_device); -} - static int __init sh_pfc_init(void) { return platform_driver_register(&sh_pfc_driver); diff --git a/include/linux/sh_pfc.h b/include/linux/sh_pfc.h index f7f01b2..fa1fec0 100644 --- a/include/linux/sh_pfc.h +++ b/include/linux/sh_pfc.h @@ -120,16 +120,6 @@ struct sh_pfc_platform_data { /* XXX compat for now */ #define pinmux_info sh_pfc_platform_data -/* drivers/sh/pfc/core.c */ -int register_sh_pfc(struct sh_pfc_platform_data *pfc); - -/* xxx */ -static inline int register_pinmux(struct pinmux_info *pip) -{ - struct sh_pfc_platform_data *pdata = pip; - return register_sh_pfc(pdata); -} - enum { GPIO_CFG_DRYRUN, GPIO_CFG_REQ, GPIO_CFG_FREE }; /* helper macro for port */