From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 0F5432C0095 for ; Sun, 14 Oct 2012 06:03:14 +1100 (EST) Received: by mail-pa0-f51.google.com with SMTP id kq12so3768724pab.38 for ; Sat, 13 Oct 2012 12:03:12 -0700 (PDT) From: Devendra Naga To: Kumar Gala , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/9] powerpc: 83xx: use module_i2c_driver macro Date: Sat, 13 Oct 2012 15:03:05 -0400 Message-Id: <1350154986-1478-1-git-send-email-devendra.aaru@gmail.com> Cc: Devendra Naga List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , replace the module init and exit calls containing the i2c_add_driver and i2c_del_driver with the module_i2c_driver macro as it does the same things as the code that is removed Signed-off-by: Devendra Naga --- Not compile tested, because i dont have a ppc cross toolchain arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c index ef6537b..d27477b 100644 --- a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c +++ b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c @@ -232,18 +232,7 @@ static struct i2c_driver mcu_driver = { .id_table = mcu_ids, }; -static int __init mcu_init(void) -{ - return i2c_add_driver(&mcu_driver); -} -module_init(mcu_init); - -static void __exit mcu_exit(void) -{ - i2c_del_driver(&mcu_driver); -} -module_exit(mcu_exit); - +module_i2c_driver(mcu_driver); MODULE_DESCRIPTION("Power Management and GPIO expander driver for " "MPC8349E-mITX-compatible MCU"); MODULE_AUTHOR("Anton Vorontsov "); -- 1.7.1