Hi all:

        I have the kernel version 2.4.4 of 2001-7-23
        I try to compile i2c like no module and i find that it has problems.
        In drivers/i2c/i2c-simple.c (lines 48 to 59):
                /*
                * Deal with CONFIG_MODVERSIONS
                 */
                #if CONFIG_MODVERSIONS==1
                /* # define MODVERSIONS */
                # include <linux/modversions.h>
                #endif

                #ifdef MODULE
                MODULE_AUTHOR("Wolfgang Denk, wd at denx.de");
                MODULE_DESCRIPTION("Simple I2C Driver for LWMON Project");
                #endif  /* MODULE */

        And the new code order i put is:


                /*
                 * Deal with CONFIG_MODVERSIONS
                 */

                #ifdef MODULE
                #       if CONFIG_MODVERSIONS==1
                                /* # define MODVERSIONS */
                #               include <linux/modversions.h>
                #       endif
                        MODULE_AUTHOR("Wolfgang Denk, wd at denx.de");
                        MODULE_DESCRIPTION("Simple I2C Driver for LWMON
Project");
                #endif  /* MODULE */

        It now compiles fine.
        Bye.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/



Reply via email to