time.c (f43dc23d5ea91fca257be02138a255f02d98e806) | time.c (09652b00cd249a1f1a2cd1a70d31e880f24d06cc) |
---|---|
1/* 2 * PS3 time and rtc routines. 3 * 4 * Copyright (C) 2006 Sony Computer Entertainment Inc. 5 * Copyright 2006 Sony Corp. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 75 unchanged lines hidden (view full) --- 84static int __init ps3_rtc_init(void) 85{ 86 struct platform_device *pdev; 87 88 if (!firmware_has_feature(FW_FEATURE_PS3_LV1)) 89 return -ENODEV; 90 91 pdev = platform_device_register_simple("rtc-ps3", -1, NULL, 0); | 1/* 2 * PS3 time and rtc routines. 3 * 4 * Copyright (C) 2006 Sony Computer Entertainment Inc. 5 * Copyright 2006 Sony Corp. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 75 unchanged lines hidden (view full) --- 84static int __init ps3_rtc_init(void) 85{ 86 struct platform_device *pdev; 87 88 if (!firmware_has_feature(FW_FEATURE_PS3_LV1)) 89 return -ENODEV; 90 91 pdev = platform_device_register_simple("rtc-ps3", -1, NULL, 0); |
92 if (IS_ERR(pdev)) 93 return PTR_ERR(pdev); | |
94 | 92 |
95 return 0; | 93 return PTR_RET(pdev); |
96} 97 98module_init(ps3_rtc_init); | 94} 95 96module_init(ps3_rtc_init); |