ISA memory and RTC cards: Only enable the configure button if the device actually has a configuration structure present.
This commit is contained in:
@@ -2145,3 +2145,12 @@ isamem_get_device(int board)
|
||||
/* Add the instance to the system. */
|
||||
return boards[board].dev;
|
||||
}
|
||||
|
||||
int
|
||||
isamem_has_config(int board)
|
||||
{
|
||||
if (boards[board].dev == NULL)
|
||||
return 0;
|
||||
|
||||
return (boards[board].dev->config ? 1 : 0);
|
||||
}
|
||||
|
||||
@@ -815,3 +815,12 @@ isartc_get_device(int board)
|
||||
{
|
||||
return (boards[board].dev);
|
||||
}
|
||||
|
||||
int
|
||||
isartc_has_config(int board)
|
||||
{
|
||||
if (boards[board].dev == NULL)
|
||||
return 0;
|
||||
|
||||
return (boards[board].dev->config ? 1 : 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user