time.c (27eb2c4b3d3e13f376a359e293c212a2e9407af5) time.c (8c6ffba0eddc8c110dbf444f51354ce42069abfc)
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

--- 76 unchanged lines hidden (view full) ---

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
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

--- 76 unchanged lines hidden (view full) ---

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
93 return PTR_RET(pdev);
93 return PTR_ERR_OR_ZERO(pdev);
94}
95
96module_init(ps3_rtc_init);
94}
95
96module_init(ps3_rtc_init);