|
@@ -385,8 +385,9 @@ EXPORT_SYMBOL_GPL(ci13xxx_add_device);
|
|
|
|
|
|
void ci13xxx_remove_device(struct platform_device *pdev)
|
|
void ci13xxx_remove_device(struct platform_device *pdev)
|
|
{
|
|
{
|
|
|
|
+ int id = pdev->id;
|
|
platform_device_unregister(pdev);
|
|
platform_device_unregister(pdev);
|
|
- ida_simple_remove(&ci_ida, pdev->id);
|
|
|
|
|
|
+ ida_simple_remove(&ci_ida, id);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(ci13xxx_remove_device);
|
|
EXPORT_SYMBOL_GPL(ci13xxx_remove_device);
|
|
|
|
|