power supply: remove warnings for 64 bit
authorJinhyung Choi <jinhyung2.choi@samsung.com>
Mon, 13 Jul 2015 07:56:01 +0000 (16:56 +0900)
committerJinhyung Choi <jinhyung2.choi@samsung.com>
Mon, 13 Jul 2015 07:56:01 +0000 (16:56 +0900)
- changed NULL device arg to MKDEV(0,0) for device_create/device_destroy

Change-Id: If53a9158364e781320d6e3db87a3bc3a84b113de
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
drivers/maru/maru_power_supply.c

index 5943b5bc704ed36ce391ad91dff3d0a331871832..612b5b34f1d77e3f36f5ee3f5f4878ba3be5b181 100644 (file)
@@ -276,7 +276,7 @@ static void class_cleanup (void)
 
                device_unregister(power_device);
 
-               device_destroy(power_class, (dev_t)NULL);
+               device_destroy(power_class, MKDEV(0,0));
        }
 
        class_destroy(power_class);
@@ -286,7 +286,7 @@ static void class_cleanup (void)
 static int init_device(void)
 {
        int err = 0, i = 0;
-       power_device = device_create(power_class, NULL, (dev_t)NULL, NULL, "battery");
+       power_device = device_create(power_class, NULL, MKDEV(0,0), NULL, "battery");
 
        for (i = 0; i < 3; i++) {
                err = device_create_file(power_device, &ps_device_attributes[i]);