ipml 936 drivers/platform/x86/classmate-laptop.c struct ipml200_dev *ipml; ipml 939 drivers/platform/x86/classmate-laptop.c ipml = kmalloc(sizeof(*ipml), GFP_KERNEL); ipml 940 drivers/platform/x86/classmate-laptop.c if (ipml == NULL) ipml 946 drivers/platform/x86/classmate-laptop.c ipml->bd = backlight_device_register("cmpc_bl", &acpi->dev, ipml 949 drivers/platform/x86/classmate-laptop.c if (IS_ERR(ipml->bd)) { ipml 950 drivers/platform/x86/classmate-laptop.c retval = PTR_ERR(ipml->bd); ipml 954 drivers/platform/x86/classmate-laptop.c ipml->rf = rfkill_alloc("cmpc_rfkill", &acpi->dev, RFKILL_TYPE_WLAN, ipml 961 drivers/platform/x86/classmate-laptop.c if (ipml->rf) { ipml 962 drivers/platform/x86/classmate-laptop.c retval = rfkill_register(ipml->rf); ipml 964 drivers/platform/x86/classmate-laptop.c rfkill_destroy(ipml->rf); ipml 965 drivers/platform/x86/classmate-laptop.c ipml->rf = NULL; ipml 969 drivers/platform/x86/classmate-laptop.c dev_set_drvdata(&acpi->dev, ipml); ipml 973 drivers/platform/x86/classmate-laptop.c kfree(ipml); ipml 979 drivers/platform/x86/classmate-laptop.c struct ipml200_dev *ipml; ipml 981 drivers/platform/x86/classmate-laptop.c ipml = dev_get_drvdata(&acpi->dev); ipml 983 drivers/platform/x86/classmate-laptop.c backlight_device_unregister(ipml->bd); ipml 985 drivers/platform/x86/classmate-laptop.c if (ipml->rf) { ipml 986 drivers/platform/x86/classmate-laptop.c rfkill_unregister(ipml->rf); ipml 987 drivers/platform/x86/classmate-laptop.c rfkill_destroy(ipml->rf); ipml 990 drivers/platform/x86/classmate-laptop.c kfree(ipml);