Date:2010-06-28 01:29:18 (13 years 5 months ago)
Author:Lars C.
Commit:a4c9bcbf37b9db53d4c14bd5b0f750fa245fb419
Message:RTC: jz4740: Use kzalloc instead of kmalloc

Files: drivers/rtc/rtc-jz4740.c (1 diff)

Change Details

drivers/rtc/rtc-jz4740.c
222222    struct jz4740_rtc *rtc;
223223    uint32_t scratchpad;
224224
225    rtc = kmalloc(sizeof(*rtc), GFP_KERNEL);
225    rtc = kzalloc(sizeof(*rtc), GFP_KERNEL);
226226    if (!rtc)
227227        return -ENOMEM;
228228

Archive Download the corresponding diff file



interactive