From patchwork Tue Mar 5 03:54:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2216721 Return-Path: X-Original-To: patchwork-linux-mmc@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 D764ADF24C for ; Tue, 5 Mar 2013 03:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932542Ab3CEDyJ (ORCPT ); Mon, 4 Mar 2013 22:54:09 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:61291 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933058Ab3CEDyH (ORCPT ); Mon, 4 Mar 2013 22:54:07 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ60043J5HUADE0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Tue, 05 Mar 2013 12:54:06 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 27.B0.25214.E5C65315; Tue, 05 Mar 2013 12:54:06 +0900 (KST) X-AuditID: cbfee68e-b7fa46d00000627e-5e-51356c5ee1e1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 67.F7.03918.E5C65315; Tue, 05 Mar 2013 12:54:06 +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 <0MJ600F765I68R30@mmp1.samsung.com> for linux-mmc@vger.kernel.org; Tue, 05 Mar 2013 12:54:06 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, 'Jingoo Han' References: <005801ce1954$fc029ce0$f407d6a0$%han@samsung.com> In-reply-to: <005801ce1954$fc029ce0$f407d6a0$%han@samsung.com> Subject: [PATCH 2/2] mmc: mvsdio: use module_platform_driver_probe() Date: Tue, 05 Mar 2013 12:54:06 +0900 Message-id: <005901ce1955$15a43280$40ec9780$%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: Ac4ZVPvo6VbhD4DcQDWasDRQf4BAvwAAASfQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsVy+t8zA924HNNAg67dxhZH/vczOjB6fN4k F8AYxWWTkpqTWZZapG+XwJWx5voatoJp7BXvdj5hbGDsYOti5OSQEDCRuLD/IQuELSZx4d56 oDgXh5DAMkaJ9nkbmWGKlmzsYIFILGKUWPNiFyuEM4NJYsK/6WCj2ATUJL58OcwOYosIKEps +X4czGYWcJT4PukmI4gtJGAr0X57IZDNwcEpYCfx+UohiCks4CLx7nw8SAWLgKrE/m/7wKp5 gar/X2llh7AFJX5MvscCMVFLYvO2JlYIW15i85q3zCBjJATUJR791YU4wEji+a2bbBAlIhL7 XrxjBLlYQmAeu8S13/9ZIHYJSHybfIgFoldWYtMBqHclJQ6uuMEygVFiFpLNs5BsnoVk8ywk KxYwsqxiFE0tSC4oTkovMtIrTswtLs1L10vOz93ECImrvh2MNw9YH2JMBlo/kVlKNDkfGJd5 JfGGxsYmZiamJuaWpuampAkrifPKX5IJFBJITyxJzU5NLUgtii8qzUktPsTIxMEp1cAosGki 87/JjuE/ch/JrLv7win9QFI284LNQdMY0yQWOFXlqO2z0GHt3v6RO9/gU/hGtQurenKnej/K mHGcP3Jb5uX1VtPM70WmPgqRWpxw9/axnKPWiy/f6bi6Z0UZc6JIvj5HLm/O0sNWtpO/WLXv 3JPqs7xt2sZdgmLSzTvCvsTd4fif8/WzEktxRqKhFnNRcSIA6gfhj8ECAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmleLIzCtJLcpLzFFi42I5/e+xgG5cjmmgwdvb+hZH/vczOjB6fN4k F8AY1cBok5GamJJapJCal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQM0 VUmhLDGnFCgUkFhcrKRvh2lCaIibrgVMY4Sub0gQXI+RARpIWMeYseb6GraCaewV73Y+YWxg 7GDrYuTkkBAwkViysYMFwhaTuHBvPVCci0NIYBGjxJoXu1ghnBlMEhP+TQfrYBNQk/jy5TA7 iC0ioCix5ftxMJtZwFHi+6SbjCC2kICtRPvthUA2BwengJ3E5yuFIKawgIvEu/PxIBUsAqoS +7/tA6vmBar+f6WVHcIWlPgx+R4LxEQtic3bmlghbHmJzWveMoOMkRBQl3j0VxfiACOJ57du skGUiEjse/GOcQKj0Cwkk2YhmTQLyaRZSFoWMLKsYhRNLUguKE5KzzXUK07MLS7NS9dLzs/d xAiO2mdSOxhXNlgcYhTgYFTi4WU4ahIoxJpYVlyZe4hRgoNZSYT3Pq9poBBvSmJlVWpRfnxR aU5q8SHGZKBHJzJLiSbnAxNKXkm8obGJmZGlkZmFkYm5OWnCSuK8jKeeBAgJpCeWpGanphak FsFsYeLglGpgrFrcH+VrcsZxu7PAXfZjlkUGa08XHfqX8uPghvnRlZtfFSe9iG3neB+yLM5M 75LUkdeH79xW2asiYqtgw8e1nFvV4qnwTAF1xpSOalW1GQk1fiotjAlLTbZcvBHt99W0VHzy VpewFeeUbdmqBLdZvV595wU7R4Vi4BMDdWWZp915+l/+b/qoxFKckWioxVxUnAgA50Zbth4D AAA= 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/mvsdio.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 145cdaf..2b7d5b7 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c @@ -881,18 +881,7 @@ static struct platform_driver mvsd_driver = { }, }; -static int __init mvsd_init(void) -{ - return platform_driver_probe(&mvsd_driver, mvsd_probe); -} - -static void __exit mvsd_exit(void) -{ - platform_driver_unregister(&mvsd_driver); -} - -module_init(mvsd_init); -module_exit(mvsd_exit); +module_platform_driver_probe(mvsd_driver, mvsd_probe); /* maximum card clock frequency (default 50MHz) */ module_param(maxfreq, int, 0);