lkml.org 
[lkml]   [2004]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    SubjectRe: 2.6.6-mm3
    From
    Hi Andrew,

    > +hpet-driver.patch
    >
    > HPET clock driver (needs work)
    this doesn't compiles if ACPI isn't present. patch attached.

    --
    Aristeu

    diff -uprN -X dontdiff 2.6-mm-clean/drivers/char/hpet.c 2.6-mm/drivers/char/hpet.c
    --- 2.6-mm-clean/drivers/char/hpet.c 2004-05-17 09:38:03.000000000 -0300
    +++ 2.6-mm/drivers/char/hpet.c 2004-05-17 09:23:04.000000000 -0300
    @@ -976,6 +976,7 @@ hpet_alloc (struct hpet_data *hdp)
    return 0;
    }

    +#ifdef ACPI
    static acpi_status __init
    hpet_resources (struct acpi_resource *res, void *data)
    {
    @@ -1056,7 +1057,10 @@ static struct acpi_driver hpet_acpi_driv
    .remove = hpet_acpi_remove,
    },
    };
    -
    +#else /* ACPI */
    +#define acpi_bus_register_driver(x) do {} while(0)
    +#define acpi_bus_unregister_driver(x) do {} while(0)
    +#endif /* ACPI */


    static int __init
    @@ -1067,7 +1071,7 @@ hpet_init (void)
    if (hpets)
    hpet_post_platform();

    - (void) acpi_bus_register_driver(&hpet_acpi_driver);
    + acpi_bus_register_driver(&hpet_acpi_driver);

    if (hpets) {
    entry = create_proc_entry("driver/hpet", 0, 0);
    \
     
     \ /
      Last update: 2005-03-22 14:03    [W:0.022 / U:270.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site