X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-proc.c;h=0c6257a034ff07b3dc85e9ce1db3847571c97fc4;hb=01e8ef11bc1a74e65678ed55795f59266d4add01;hp=8d300e6d0d9e92eedc96a87cc2055cc4062d7180;hpb=cd9662094edf4173e87f0452e57e4eacc228f8ff;p=safe%2Fjmp%2Flinux-2.6 diff --git a/drivers/rtc/rtc-proc.c b/drivers/rtc/rtc-proc.c index 8d300e6..0c6257a 100644 --- a/drivers/rtc/rtc-proc.c +++ b/drivers/rtc/rtc-proc.c @@ -108,12 +108,10 @@ void rtc_proc_add_device(struct rtc_device *rtc) if (rtc->id == 0) { struct proc_dir_entry *ent; - ent = create_proc_entry("driver/rtc", 0, NULL); - if (ent) { - ent->proc_fops = &rtc_proc_fops; + ent = proc_create_data("driver/rtc", 0, NULL, + &rtc_proc_fops, rtc); + if (ent) ent->owner = rtc->owner; - ent->data = rtc; - } } }