From patchwork Tue Mar 5 03:53:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2216691 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D330B3FCF6 for ; Tue, 5 Mar 2013 03:53:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932886Ab3CEDxm (ORCPT ); Mon, 4 Mar 2013 22:53:42 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:46863 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932566Ab3CEDxl (ORCPT ); Mon, 4 Mar 2013 22:53:41 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ60034C5GHOQH0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Tue, 05 Mar 2013 12:53:23 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 2B.F7.23273.33C65315; Tue, 05 Mar 2013 12:53:23 +0900 (KST) X-AuditID: cbfee691-b7faa6d000005ae9-0a-51356c3332c6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 9D.D7.03918.33C65315; Tue, 05 Mar 2013 12:53:23 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ600F1V5GZ8R30@mmp1.samsung.com> for linux-mmc@vger.kernel.org; Tue, 05 Mar 2013 12:53:23 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, 'Jingoo Han' Subject: [PATCH 1/2] mmc: davinci_mmc: use module_platform_driver_probe() Date: Tue, 05 Mar 2013 12:53:23 +0900 Message-id: <005801ce1954$fc029ce0$f407d6a0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4ZVPvo6VbhD4DcQDWasDRQf4BAvw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsVy+t8zI13jHNNAg89nTCyO/O9ndGD0+LxJ LoAxissmJTUnsyy1SN8ugStj89HlbAWrOCru7zrP3sA4g72LkZNDQsBE4mtzMyOELSZx4d56 ti5GLg4hgWWMEpuuT2WDKXp5+i8rRGIRo8TXM5PYIZwZTBITv+4DG8UmoCbx5cthMFtEQFFi y/fjYDazgKPE90k3wVYIC3hKbN49HcxmEVCVuHdsHTOIzStgKzHtzEU2CFtQ4sfkeywQvVoS m7c1sULY8hKb17wFqucAukhd4tFfXYhVehK3ns9jgigRkdj34h0jyG0SAs3sEifaJ7JC7BKQ +Db5EAtEr6zEpgPMEI9JShxccYNlAqPYLCSbZyHZPAvJ5llIVixgZFnFKJpakFxQnJReZKpX nJhbXJqXrpecn7uJERIrE3cw3j9gfYgxGWj9RGYp0eR8YKzllcQbGhubmJmYmphbmpqbkias JM4rf0kmUEggPbEkNTs1tSC1KL6oNCe1+BAjEwenVAOjW7XhyzOSYhk5E+5d2xm3c+aNoxas gnOZFt7rq9COrz59iHP2LXm5SLfdETxLnzRsb3osd8S1OSv30W2JBOV/kc2W5ZfSbK/wrC2b HZv8QoLt78mGU2zV+0J3KHpdr5misdn462KWng9e/1bezzMxS53QyvPK8mkr84sJ3X8y9YvF 80R7mTWVWIozEg21mIuKEwHR0SHAqwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKIsWRmVeSWpSXmKPExsVy+t9jAV3jHNNAgzuP9S2O/O9ndGD0+LxJ LoAxqoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdo qpJCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsI4xY/PR5WwFqzgq7u86z97A OIO9i5GTQ0LAROLl6b+sELaYxIV769m6GLk4hAQWMUp8PTOJHcKZwSQx8es+sA42ATWJL18O g9kiAooSW74fB7OZBRwlvk+6yQhiCwt4SmzePR3MZhFQlbh3bB0ziM0rYCsx7cxFNghbUOLH 5HssEL1aEpu3NbFC2PISm9e8BarnALpIXeLRX12IVXoSt57PY4IoEZHY9+Id4wRGgVlIJs1C MmkWkkmzkLQsYGRZxSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7iREcic+kdjCubLA4xCjAwajE w8tw1CRQiDWxrLgy9xCjBAezkgjvfV7TQCHelMTKqtSi/Pii0pzU4kOMyUCPTmSWEk3OByaJ vJJ4Q2MTMyNLIzMLIxNzc9KElcR5GU89CRASSE8sSc1OTS1ILYLZwsTBKdXAuFT69IW27zeW lDxLPXjQvWXqLqMrs7mTFSos9E6xXtlhfndqzJmUlilXIjj0rvTq7JbjU7iXyyVyNcdoWWfE wsiu7+FeLlULclPVEo4Wsh95wXb9zeUl1/3nmwgmm19Iib0VX1qTktAoYxuwNjNY6dWmOUc8 d2Z3ak/Yo+UkU5qxMbk5fdMTJZbijERDLeai4kQA1FXE5AgDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han --- drivers/mmc/host/davinci_mmc.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 2063677..7635e48 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -1410,18 +1410,7 @@ static struct platform_driver davinci_mmcsd_driver = { .remove = __exit_p(davinci_mmcsd_remove), }; -static int __init davinci_mmcsd_init(void) -{ - return platform_driver_probe(&davinci_mmcsd_driver, - davinci_mmcsd_probe); -} -module_init(davinci_mmcsd_init); - -static void __exit davinci_mmcsd_exit(void) -{ - platform_driver_unregister(&davinci_mmcsd_driver); -} -module_exit(davinci_mmcsd_exit); +module_platform_driver_probe(davinci_mmcsd_driver, davinci_mmcsd_probe); MODULE_AUTHOR("Texas Instruments India"); MODULE_LICENSE("GPL");